We have an CGI based "hit counter" application available
on all our servers that allows you to easily display a counter on
your pages without the need to do any programming. The "Counter"
application is a public domain application which has been installed
without modification on all our servers for the convenience of our
customers. Below are a few examples of what you can do with it.
Counter (version 2.5)
Counter
2.5, a page counter program that will display the number of
"hits" to a web page. In order to make this easy to use
for everybody, we have configured the counter so that you can create
your own data file and at the same time initialize the counter when
you first use it.
What this means is that you must name your data file using the convention:
where <yourlogin> is the login you use to login to your
NetGate account.
To use Counter
2.5, just add any of the following lines (from the examples
below) to any of your pages, changing "sample.dat" to
"<yourlogin>.dat". The next time your page is accessed,
the data file will be created in a protected area. Each subsequent
access will increment the counter.
You can add a counter to as many of your pages as you would like.
The only difference in adding a counter to additional pages is the
name of the data file. Each data file must have a unique name. What
we recommend is that you name any additional data files using the
following convention:
where <yourlogin_pagename> is the login you use to login
to NetGate and the name of the page displaying the counter.
Examples
Here's an example of a simple page counter:
<img src="http:/cgi-bin/Count.cgi?df=netgate_counters.dat"
align=absmiddle>
If you want your counter to start with a number other than 0,
( for example 9999 ) you can set the starting number using the following
HTML tag:
<img src="http:/cgi-bin/Count.cgi?st=9999|df=netgate_counters2.dat"
align=absmiddle>
To display the current time you can use:
<img src="http:/cgi-bin/Count.cgi?display=clock align=absmiddle>
To display the current date you can use:
<img src="http:/cgi-bin/Count.cgi?display=date align=absmiddle>
To display the counter in Style B use:
<img src="http:/cgi-bin/Count.cgi?dd=B|df=netgate_counter.dat"
align=absmiddle>
To display the counter in Style C use:
<img src="http:/cgi-bin/Count.cgi?DD=C|df=netgate_counter.dat"
align=absmiddle>
You can also place a hidden counter in your page, you can view
the count just by viewing the data file you specify for that page.
Use the following code to display a hidden counter:
<img src="/cgi-bin/Count.cgi?df=sample.dat&sh=F">
More Info
For more examples, additional information, and options on the
counter, visit
the authors site.
|