Notice:

This is a script I wrote quite a while ago. It is not supported, but I left it here in case it might be useful to someone.

Please visit http://www.mattkruse.com/ for my updated web site and to find some of the things I've done more recently. Hopefully you will find something useful, or at least mildly interesting!

Counter Script


people have visited this page since July 24.

Everyone seems to want a counter at the top of their page like the one above, right? Personally, I don't like them, but many people do. But unfortunately not everyone knows how to make them, and not every web administrator wants to make a counter script for every user.

This script solves the problem very easily. It is one script that will keep track of counters for every user on your site with no problems, and everyone calls the script with the exact same command. This means no hassles and no trying to teach everyone how to call a script so that their counters will work right.

For example, the counter above is called with the following command:

<!--#exec cgi="/cgi-bin/counter.cgi"-->
This is the same way that everyone on this site uses that command, and it will also keep track of counters on different pages by the same user.

This script was written for NCSA httpd 1.4, running on a Linux machine. There shouldn't be any problems running it on other setups.

Source Code

Here is the source code. This perl script is free and you can take it and use it however you want.