Hmm, well, the problem is, I want a hit counter on <A HREF="http://www.hostultra.com/~theraven606">my site</A>, and I've tried putting in this code to the index page:
<!-- HIT COUNTER -->
<?php
$counter_file = "./count.dat";
if (!($fp = fopen($counter_file, "r"))) die ("Cannot open ${counter_file}. Please notify Serpent7 of this.");
$counter = (int) fread($fp, 20);
fclose($fp);
$counter++;
echo "You are visitor ${counter}.";
$fp = fopen($counter_file, "w");
fwrite($fp, counter);
fclose($fp);
?>
<!-- END HIT COUNTER -->
I've created a count.dat file in the same directory, but all that happens is that the counter on the page stays at 1. I was hoping to make a graphical counter if this worked, but it hasn't. Does anyone know what's wrong?