Salve, c'è qualcuno che potrebbe aiutarmi con questo contatore di accesso:
<?php
//this is our text file if you create a different
//named file change the script below to reflect this
include ("kounter.txt");
$counter_file = ("kounter.txt");
//now we open the file
$visits = file($counter_file);
//this increments the counter value by 1
$visits[0]++;
//now we will open the counter file for
//writing "w"
$fp = fopen($counter_file , "w");
//put the new count value into the counter
//file
fputs($fp , "$visits[0]");
//close the file
fclose($fp);
//display the count
echo $visits[0];
?>
Non mi da errori, ma non mi visualizza niente.CHI SA'???