Here you got a php script which count views.
PHP Script: Hits Counter
$archivo = fopen(”visitas.txt”, “r”); // open file to read
$total = fgets($archivo); // reading the file
fclose($archivo); // close the file
$archivo = fopen(”visitas.txt”, “w”); // open the file to write
$total = $total + 1;
fwrite($archivo, $total); // add +1 to the file
fclose($archivo);
echo “Visitas:”.$total; // view the results
?>












Leave Your Response