|
Counting Number Of Hits To My Page.
This easiest way to add a counter on any web page is to use a "server side include". A server side include is a program wich gets processed by the web server first and the results appear in the originating page.
If you want to count the number of times your page has been accessed you can embed the tag mentioned below in your HTML files. In other words cut and paste the tag below into your html file.
Use <!--#exec cgi="/cgi-bin/counter"-->. This references a program called 'counter' which will return the number of times the page has been accessed as a number (1, 2, 3, 4, ...).
If you use <!--#exec cgi="/cgi-bin/counter-ord" --> as the tag, the program will return an ordinal of that number (1st, 2nd, 3rd, 4th, ...).
One more thing has to be done. The server needs to identify the page has a server side include. The way this is done is simple. The extension on the page must end with .shtml instead of .html The server will NOT see a counter unless the extension is called .shtml !!!
If you have any problems with this page contact us through e-mail at: support@storm.ca
|
|