First create a hiscounter.txt file in your root folder
and then put the code where you want to display page visit count
$count_my_page = ("hitcounter.txt");
$hits = file($count_my_page);
$hits[0] ++;
$fp = fopen($count_my_page , "w");
fputs($fp , "$hits[0]");
fclose($fp);
page counter,page visitor counter
No comments:
Post a Comment