Adding A Hit Counter To Your Pages
We have made a page Hit Counter available to our users for use on their
own web pages.
Installation of the counter is very simple.
The counter is accessed like any normal graphic image.
<IMG SRC="/cgi-bin/nph-count?link=xxxxxx">
NOTE
You MUST replace the xxxxxx with your login name.
For example, if support had a counter it would read;
<IMG SRC="/cgi-bin/nph-count?link=support">
You may cut and paste this example into your own homepage or add it
manually.
Options:(advanced options, use of these are not
required, only the examples above are the minimum needed.)
Usage Remember Replace all the
xxxxxx in the examples below to your username when
installing or using
them.
Important!!!!! Read and understand the advanced
options BEFORE you try to use them.
-
Which arguments are accepted by the program ?
The following arguments are currently recognized:
- width=number
Specifies the number of digits in the resulting image.
- link=The name of the user.
The username is used to keep track of a certain counter.
It should be unique for each counter.
- increase=number; default 1
Specifies the number by which the counter should be increased.
This can be used to check how many times a certain page was
visited
without increasing the counter. In that case specify
increase=0.
Resetting a certain counter is also possible this way by
specifying a negative
number here.
- show=NO
In case you would like to keep track of the number of accesses to
a certain page without showing the counter image, specify the
above
argument.
-
What to add in a HTML-page ?
To activate a counter in a certain HTML-page add something like the
following:
< IMG
SRC="/cgi-bin/nph-count?arg1=value1&arg2=value2&arg3=value3">
where arg1,2,3 are any of the supported
arguments.
NOTE: do not specify the debug argument inside a
HTML-page.
-
How to keep track of a page without anybody knowing ?
In the page you would like to monitor insert something like
the following:
< IMG SRC="/cgi-bin/nph-count?link=xxxxxx&show=NO">
and on a different HTML-page where you would like the check the
counter
regularly:
< IMG
SRC="http://www.pil.net/cgi-bin/nph-count?link=xxxxxx&increase=0">
-
How to reset a certain counter to zero ?
If you would like to reset a counter to zero, check the counter
value
and the link argument you used in a HTML-page and open the
following
URL directly (i.e. by typing it in, in the 'open URL' box):
http://www.pil.net/cgi-bin/nph-count?link=xxxxxx&increase=-value
This will reset the counter to zero (note: the counter value can
not
go negative).
-
What's the size of the resulting output image ?
The program will return a GIF-image of 20 pixels high and
15 * width pixels wide. This can used to your advantage
by specifying the HEIGHT and WIDTH inside the HTML-page. By doing
this, during retrieval of the page, the WWW-browser can allocate
space for the image while displaying the remainder of the page.
Example:
< IMG SRC="/cgi-bin/nph-count?width=5&link=xxxxxx" WIDTH=75
HEIGHT=20>