This is a PHP way to do it
Code:
Visita Nº <?php
$c = fopen( "counter.dat", "r");
$nm = fscanf($c, "%i", $num);
$num++;
echo $num;
fclose($c);
$c = fopen("counter.dat", "w");
fwrite($c, $num);
fclose($c);
?>.
I know that the two "fopen"s can be done in just one, but i cant remember how to do it :S
Bye!