I want to put invisible hit counter to multiple pages of web site. I put visible counter like follow. There is a text file which is use to save counts. and there is a php file including the following code.And finally I put echo
to display the hits. Now I want to invisible these hits and also add to multiple pages. Surf the internet and didn't find a answer to my problem. Could some one plese help me...
counter.php
-
$count_my_page = ("hitcounter.txt");
-
$hits = file($count_my_page);
-
$hits[0] ++;
-
$fp = fopen($count_my_page , "w");
-
fputs($fp , "$hits[0]");
-
fclose($fp);
-