Forum

Free news

FREE blog

Donate

Search

Subscribe

jews/911

Feedback

dna

Gun poll

RCC

AIDS

Home

Fathers

Surveys

Holocaust

IQ

14th Amdt

19th Amdt

Israelites

NWO

Homicide

Blacks

Whites

Signatory

Talmud

Watchman

Gaelic

Traitors

Health?

 

Why? InterNetworking
Web Page Hit Counter

horizontal rule

In the web community, everybody and his brother have clamored about wanting a hit counter in their home page. These are generally implemented (poorly) with a cgi-bin program that returns a graphic. It looks ugly and doesn't work for folks who don't load the images or have text-only browsers. The other less common method is using a server-side include executable program which is insecure at best and not very efficient (requires an extra unix process "fork")

We have a better way. We added a server side include "counter" function, built in to the server. Now you can have a page hit counter with none of the traditional problems. In fact, its so efficient that we can afford to offer it to all of our web customers.

horizontal rule

How to set it up

First, turn your HTML document into a SHTML document.

The first thing you have to do is adjust the filename extension of your web page so that the server recognizes it as containing server-side includes. Just change the extension to .shtml. So, for instance, if your web page was named "index.html" or "index.htm", your new web page should be named "index.shtml". (Other valid extensions for server-side include HTML documents on the Why? InterNetworking web server are: "-s.html" and "-s.htm".)

Next, create a file to hold the value of the counter.

The first thing you have to do is create a file to hold the value of the counter. This is an ASCII text file which contains one line on which the the counter value is stored. This file must always have the extension ".cnt". The file can begin with any name, but we recommend that you use the same base name as the .shtml file you intend to use it in. So, if your web page was named, "index.shtml," then name the counter file, "index.cnt". Put this file on the server, with one line containing the number you want the counter to start at.

When you put the counter file on the server, it must have special "access permissions." It must be set read/write by user, group, and other so that the HTTP server can read and update it. You can use the chmod command to do this from your FTP program or from the Unix shell prompt.

On the Why? InterNetworking web server, you should use the countifier program instead. This will convert all .cnt files in your directory into counter files.

Finally, add the counter to your SHTML document.

Add the counter directive in your web page where you want the counter to appear. This directive looks like a HTML comment. In its simplest form, its "<!--#counter file="filename" -->". Filename should be the base name of the counter file, without the ".cnt" extension. So, if your counter file is named "counter.cnt", the counter directive you would use is "<!--#counter file="counter" -->". There you go, you now have a counter in your page. Bring up Netscape and try it out!

horizontal rule

Advanced Options:

You can do quite a bit more with the counter than just add one to it for each hit. You can keep track of page hits silently, adjust the appearance of the counter, and even do things like rotating your home page through several backgrounds. Here is the list of options you can give the counter directive:

<!--#counter silent="no" width="0" nocommas="no" min="0" max="2147000000" rollover="no" increment="1" ith="no" gfx="#" file="counter" include="file%i.html" debug="" -->

Where:

bulletsilent: Whether or not to show the value of the counter to the person accessing the page. yes - Don't show the counter to the page's accesser. no - Show the counter to the page's accesser (default).
bulletwidth: The minimum width of the displayed counter (padded with 0's if necessary).
bulletnocommas: Whether or not to insert commas into the number for readability. yes - Don't insert commas. no - insert commas (default). If width is not 0 then no commas are inserted regardless of the setting in nocommas.
bulletmax: The maximum number to count to. When the counter reaches this number, its behavior is controlled by rollover. By default the number is near two billion.
bulletmin: The minimum number to count down to. When the counter reaches this number, its behavior is controlled by rollover. By default the number is zero.
bulletrollover: When you hit the maximum or minimum allowed number, what do you do? yes - Flip to the other endpoint. I.e. if at max, change to min. If at min, change to max. no - Stop counting. Do not add or subtract any further from the counter.
bulletincrement: The number to add to the counter. Default: 1. You may also use the keyword "random" which means that the next value of the counter should be a random number between min and max.
bulletith: Whether or not to append st, nd, rd, or th as appropriate to the end of the counter (i.e. 1st, 2nd, 3rd, 4th, and so on.) yes - Add the extension. no - Don't add the extension (default).
bulletgfx: Use graphics (i.e. GIF files) to display the counter number instead of using a text counter. Put the html markup to include the graphics where "#" is the digit to replace. For example, if your counter were at 1,234 and you used the following line: <!--#counter ith="yes" gfx="<IMG SRC=\"gifs/#.gif\">" file="counter" --> then it would be replaced by the html markup: <IMG SRC="gifs/1.gif"><IMG SRC="gifs/,.gif"><IMG SRC="gifs/2.gif"><IMG SRC="gifs/3.gif"><IMG SRC="gifs/4.gif">
bulletfile: The name of the file (minus the .cnt extension) to store the counter in. (For example, if your filename is "home.cnt" then you should use file="home".) Warning: the "file" directive must come after everything except include and debug.
bulletinclude: The "base" filename (where %i is the counter) of a file to include in to the document based on the value of the counter. (For example, if you want to include pageX.html where X is the value of the counter, use include="page%i.html".)
bulletdebug, if it exists, means print out the internal variables at the point in the command to assist in figuring out why the counter isn't working. This is provided for expert users... If you don't understand what its saying, don't use it.

Oh yeah. By the way, you are the 6,354th person to read this page.

Enjoy!

horizontal rule

Suggested Uses:

Basic hit counter

Add this to your web document:
Welcome, you are the <strong><!--#counter ith="yes" file="counter" --></strong> person to access this web page.

And create the counter.cnt file. It looks like:
Welcome, you are the 1,234,567th person to access this web page.

horizontal rule

Revision History

vA1.1.1-2

bulletAdded yes/no and 1/0 as valid in addition to true/false

vA1.1.1-1

bulletAdded "gfx" option.
bulletUpgraded to function with Apache 1.1.1

v1.5.1-1

bulletAdded "random" setting to increment option
bulletAdded "yes/no" options for all tags. Previously the existance of the tag with nothing in the quotes meant do the opposite of the default. This action is preserved for backward compatibility.
bulletUpgraded to function with NCSA httpd 1.5.1

v1.5a-1

bulletAdded "ith" option.
bulletUpgraded to function with NCSA httpd 1.5a

horizontal rule

[Go Back][E-Mail][Rates][Why?][EFF]

 

TRAITOR McCain

jewn McCain

ASSASSIN of JFK, Patton, many other Whites

killed 264 MILLION Christians in WWII

killed 64 million Christians in Russia

holocaust denier extraordinaire--denying the Armenian holocaust

millions dead in the Middle East

tens of millions of dead Christians

LOST $1.2 TRILLION in Pentagon
spearheaded torture & sodomy of all non-jews
millions dead in Iraq

42 dead, mass murderer Goldman LOVED by jews

serial killer of 13 Christians

the REAL terrorists--not a single one is an Arab

serial killers are all jews

framed Christians for anti-semitism, got caught
left 350 firemen behind to die in WTC

legally insane debarred lawyer CENSORED free speech

mother of all fnazis, certified mentally ill

10,000 Whites DEAD from one jew LIE

moser HATED by jews: he followed the law

f.ck Jesus--from a "news" person!!

1000 fold the child of perdition

 

Hit Counter

 

Modified Saturday, March 11, 2017

Copyright @ 2007 by Fathers' Manifesto & Christian Party