DRH Internet Inc.
Website hosting technical support library
Many web sites sport a counter, a graphic which counts and displays the number of people which have visited a web site. Many sites offer free and charged counters which are often bogged down, slow, or display advertisements. As part of our service, we offer a counter script on our servers which is fast and gets the job done.

How to use

This counter is actually quite simple, just insert the following into your HTML page with a few changes:

<!-- begin counter -->
<img src="/cgi-bin/nph-count?width=5&link=identifier" height=20>
<!-- end counter -->

Here is the counter produced by the above code:

You need to change "identifier" to be a unique identifier for the counter. The counter uses this identifier to keep track of the count for each page. We recommend that you use the URL of the file as the identifier for the counter.

If you would like the same counter to appear on two different pages, just make both of them use the same identifier.

The counter data is stored in the file "usrconf/count_file" in the directory above your home directory. To change a count, just modify this file.

The width option

It is possible the change the number of digits that the counter displays. Do this by changing the number after width= in the counter HTML code. The maximum digits that the counter will display is 10. Also, if the specified number of digits to display is less than the actual number of digits needed, the counter will expand.

For example, width=9 creates:

and, width=0 creates: