awarkops 0 Report post Posted December 17, 2005 ok just copy this code to the location y <?php $file = 'counter.txt'; if(!file_exists($file)) { $handle = fopen($file, 'w'); fwrite($handle, 0); fclose($handle); } $count = file_get_contents($file); $count++; if(is_writable($file)) { $handle = fopen($file, 'w+'); fwrite($handle, $count); fclose($handle); } else { echo 'Could not increment the counter!<br />'; } echo number_format($count).' Hits';?>open notepad and save it as counter.txt then upload it to the director you put the code on the php page a set the permission to 777when adding this code to you page make sure you save you page as name.phpand not as name.htm or name.html or if you have php activation in html u can just save it as htmlim cant remember how to activate php in html if some one can tell me it will help Share this post Link to post Share on other sites