Hosting Services > Developer's Corner > CGI > Free CGI > Counters

Advanced Counters

 

How to use Advanced Counters

To setup, simply add the following code to the page/pages you are interested in watching:

<img width="0" height="0" src="/cgi-t/logcount.pl?anyname">

Where "anyname" is a name which you give to identify the HTML file you are logging. The name you choose is what will appear under the URL header in the count.txt file.

The script creates a log file, called count.txt in your /_private directory. This directory will be created automatically if it doesn't already exist.

 

Sample

Below is a sample of the of the output of this script:

[Date]                    [URL]       [Remote IP]    [Server Name]       [Referred By]

-------------------------------------------------------------------------------------------

Sat Nov  1  2:20:58 1997  my_index_1  143.178.243.5  www.yahoo.com       http://www.yahoo.com/

Sat Nov  1  3:44:09 1997  my_index_1  193.145.189.97 www.webhostlist.com http://www.webhostlist.com/

Sat Nov  1  7:55:05 1997  my_index_1  206.153.71.72  www.infoseek.com    http://www.infoseek.com/

Sat Nov  1  8:50:16 1997  my_index_1  209.16.220.10  www.yahoo.com       http://www.yahoo.com/

Sat Nov  1  9:40:38 1997  my_index_1  195.5.138.245  www.yahoo.com       http://www.yahoo.com/

Sat Nov  1 10:43:02 1997  my_index_1  207.34.79.111  www.yahoo.com       http://www.yahoo.com/