Geeking out…
I decided to do a very BRIEF update earlier. I was going to update my old hit-counter code in Perl and re-write it in PHP since almost everything running on my webserver now is in PHP anyway. So about a day later…
It’s still not QUITE done, but most of the stuff is finished. Rather than storing numbers in flat files, it’s all handled through a mysql database. It’s also storing basic page-access information in the database. Things like the referer and the time of access. I also whipped up a quick monitoring page to allow me to check all recent access to any pages that I have set up with the counter to let me see who’s linking to me, from where, etc. Wordpress has some similar functionality built in, but it’s more fun to write my own. ![]()
Once I get the code cleaned up and made a bit more portable I’ll probably put it up on here somewhere. Just copy three .php files onto your webserver, insert your database connection parameters into one of them, and off you go. Instant hit counter, logger, and reporter.







