Aquila Members Area
Home
Access Numbers
Internet Services
Business Solutions
Aquila Members
News
Search
About Us
Sign Up Today
Write Us
Contact Us
Site Map
Access Numbers Freedom Mail EARN $10 Y2K STATEMENT POLICY STATEMENT GLOSSERY Web Counter

Adding Counters to Your Web Pages

 

Creating a Daily Counter
To include a daily counter to any of your web pages:

  1. Rename your web page so that its file extension is html-ssi
    for example, rename default.html to default.html-ssi
     
  2. Add the following directive to your web html text (code):

    You are visitor number <!--#daycnt--> today.

That's all there is to it!

The next time your web page is accessed, the server will replace the directive <!--#daycnt--> with the number "1" since it will be the first access for the day. Thereafter, the count will be incremented for each access. The first time the page is accessed after midnight local time, the counter will reset to "0". To remember the count, the server creates a file called, in this example, default.html-ssi.ctr within the directory your web page is located. It uses this to keep track of the access count even if our servers are reset or stopped for maintanance.

 

Creating a Total Visitor Counter
To include a total visitor counter to your web pages:

  1. Rename your web page so that its file extension is html-ssi
    for example, rename default.html to default.html-ssi
     
  2. Add the following directive to your web html text (code):

    You are visitor number <!--#totcnt--> since <!--lastzero-->.

That's all there is to it!

The next time your web page is accessed, the server will replace the directive <!--#daycnt--> with the number "1" and <!--#lastzero--> with the current date/time. Thereafter, the count will be incremented for each access, and the date/time will remain the same. To remember the count and creation time, our server creates a file called, in this example, default.html-ssi.ctr within the directory your web page is located. It uses this to keep track of the access count even if our servers are reset or stopped for maintanance.

 

Note:
If you want to show both a daily and total counter on the same page, make sure that one of the directives is the "r" version. For example, you put <!--#daycnt--> and <!--#rtotcnt--> on a page or <!--#rdaycnt--> and <!--#totcnt--> on a page. The rdaycnt and rtotcnt prevent the counter file from incrementing twice when someone visits your page.

To reset the counter, simply delete the page's counter file.

Sign Up Online Today!Back to Our Home PageMove Back to The Top Of Page

For more information call (877) 240-8344 or e-mail service@aquila.net
This site was last updated on Tuesday, 22 August, 2000
Copyright © 2000 Aquila Internet Services, Inc., all rights reserved.