Help Desk
CGI: Counter Script
 
Web www.seanet.com

You can put a counter on your Web page by following the directions below.

This script generates .xbm graphics. If the Web Browser cannot display .xbm graphics, the counter will not be seen. Because the count generated by the counter script is only an approximation of the true count, we don't recommend using this counter to keep track of the number of hits on your Web site. The script is only run when the image is retrieved.

  1. Create an empty text file in your homepage directory for the counter to store the count value in. This file can be called anything you want, but it's a good idea to call it "something.val", such as "counter.val" or "index.val".

  2. Use your FTP client to set the .val file's permissions to world-writeable. If you don't do this, the counter will not work.

  3. Add a link to the counter to your HTML code. You will need to use something like this:

    This page has been visited <IMG SRC="http://www.seanet.com/cgi-bin/counter2.pl/the-path-to-your-val-file/counter.val"> times.

  4. Replace the part that reads the-path-to-your-val-file with the actual path to your value file. The path will probably be: ~username/filename.
    Here is an example in HTML:

    This page has been visited <IMG SRC="http://www.seanet.com/cgi-bin/counter2.pl/~username/counter.val"> times.

    Don't forget that this is case-sensitive.

  5. Load the Web page and you should see the counter!


Seanet Internet Services
PO Box 2228
Seattle, WA 98111
Seanet Support Hours
8 AM - 8 PM Monday - Friday
10 AM - 5 PM Weekends - Holidays
206.343.7828
1.800.9.SEANET
(1.800.973.2638)