CALLING THE COUNTER PROGRAM


You can refer to the counter program from your web page like this:
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=accountname.dat">

The "df" in the line above stands for datafile. The datafile stores the number of hits to your web page. The "accountname.dat" in the example above should be replaced with your account name. The name of your datafile needs to be unique because everyone's datafile is stored in the same directory.
For example, If your account name was "eggbert" you would refer to the counter program like this:

<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=eggbert.dat">
or
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=eggbert-count.dat">
or
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=eggbert-index.dat">

The server will automatically create your datafile when you call your program for the first time.

You can modify the appearance of your counter in many ways. The string between the ? and the " is called the query string. There can't be any new lines in the "<img src" line and no space after the ?. You can specify several different options in the query string. The options must be separated with a | or a &. The options can be in any order and are not case sensitive. Look at the examples below.

EXAMPLES OF COUNTERS


COUNTER WITH DIGITS FROM DIRECTORY A
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|dd=A">

COUNTER WITH DIGITS FROM DIRECTORY B
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|dd=B">

COUNTER WITH DIGITS FROM DIRECTORY C
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|dd=C">

COUNTER WITH DIGITS FROM DIRECTORY D
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|dd=D">

COUNTER WITH DIGITS FROM DIRECTORY E
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|dd=E">

COUNTER WITH NO FRAME
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|ft=0">

COUNTER WITH WIDE FRAME
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|ft=10">

COUNTER WITH YELLOW FRAME
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|frgb=ffff00">

COUNTER WITH RED DIGITS (srgb=color to change/ prgb=color to change to)
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|srgb=00ff00&prgb=ff0000">

COUNTER WITH NEGATED DIGIT COLOR
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|negate=T">

COUNTER WITH THE BLACK COLOR OF THE DIGIT TRANSPARENT
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|tr=T|trgb=000000">

COUNTER WITH ONLY 5 DIGITS
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|md=5">

COUNTER TO DISPLAY EXACT NUMBER OF DIGITS
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|pad=0">

COUNTER WITH A COMMA AT THE THOUSAND
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|comma=T">

COUNTER TO DISPLAY LITERAL STRING
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?df=yourfilename.dat|lit=1234">

DISPLAY DATE - PACIFIC TIME ZONE
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?display=date|timezone=GMT-0800">

DISPLAY CLOCK - PACIFIC TIME
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?display=clock|timezone=GMT-0800">

DISPLAY CLOCK IN 24 HOUR FORMAT
<img src="http://www.sisqtel.net/cgi-bin/Count.cgi?display=clock|tformat=24|timezone=GMT-0800">

For more information visit www.muquit.com/muquit/software/Count/Count.html

COPYRIGHT
Copyright 1995-1996 by Muhammad A Muquit. Permission to use, copy, modify and sell this program for any purpose is hereby granted without fee, provided that this copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. If the program is included in a book, publication or in a software distribution media for sale, the author must be notified about it. No binary only distribution is allowed. All distributions must include the source and this copyright notice.
THIS PROGRAM IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE AUTHOR Muhammad A. Muquit BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.