More Questions Than Answers

Dan Atrill's blog site

Text Hit Counter

I was looking for a counter and found this, courtesy of the PHP Freaks: <?php //First create a file to store the hits. Make sure this file has write permission $counternum = “counternum.txt”; //Open the file and write the current hits plus one. function displayCounter($counternum) { $fp = fopen($counternum,rw); $num = fgets($fp,9999); fclose($fp); $fp = [...]

more... »

Sat, July 3 2004 » Web developing » No Comments