blah. earlier I used this little script
included in footer (and file counter.txt placed in correct place, of course). but now, on new engine (XML?) it isn't work
where can I put this script, what should I add to footer template? {$count} ? blah
$licznik_file = "counter.txt";
$fp = fopen($licznik_file, "r+");
$count = fgets($fp, 10);
$count += 1;
fseek($fp, 0);
fwrite($fp, $count, 10);
fclose($fp);
print "Views: $count ";
$fp = fopen($licznik_file, "r+");
$count = fgets($fp, 10);
$count += 1;
fseek($fp, 0);
fwrite($fp, $count, 10);
fclose($fp);
print "Views: $count ";
included in footer (and file counter.txt placed in correct place, of course). but now, on new engine (XML?) it isn't work
where can I put this script, what should I add to footer template? {$count} ? blah
http://cieciewnecie.pl - my unique UNB forum! :D

smile
Show profile
Link to this post