RE: Stats Script
omg all you need for a hit counter is a few lines of code really
<?
$counter = fopen("counter.txt", "r");
$blah = fread($counter, filesize("counter.txt"));
fclose($counter);
$counter = fopen("counter.txt", "w");
$blah++;
fwrite($counter, $blah);
fclose($counter);
echo $blah;
?>
may show up an error first time but shouldnt after that
|