Php Hit Counter And Writer To File
Join the DZone community and get the full member experience.Join For Free
// description of your code here
$count_my_page = ("/counter.txt"); $hits = file($count_my_page); $hits ++; $fp = fopen($count_my_page , "w"); fputs($fp , "$hits"); fclose($fp);
Opinions expressed by DZone contributors are their own.