Posts Tagged ‘Web Development’

Simple CGI Hit Counter

Sunday, May 10th, 2009

If you need a simple cgi hit counter, you can use the script written by John Collins, this is popular web stats using PERL CGI, the code is open source and you can rewrite it for personal purpose, the code is available here http://www.akamarketing.com/simple-hit-counter-with-perl.html

The script consist of:

  1. counter.cgi - the actual Perl hit counter script, to be placed in the cgi-bin of your web site.
  2. count.dat - a plain-text file that will store the count value, also in the cgi-bin.
  3. counter demo.shtml - the HTML page that will call the script.

Hopefully it will be useful for your website.