|
CIRR.COMWeb Hosting Support:CGICounter Examples |
Remember, incrementing the counter for a page will increment both the page counter and the site counter. A page ID ending in "000" is the site. So you can reference a site as if it were a page and increment the site counter without incrementing any page counters.Increment counters & display the page counter
- pageid = com000-001
- no options
- Counter.pl displays: 15458
Increment counters & display ordinal page counter
- pageid = com000-001
- opts = o
- Counter.pl displays: 15459th
Don't increment counters, display page counter
- pageid = com000-001
- opts = np
- Counter.pl displays: 15459
Increment counters & display site counter owning page
- pageid = com000-001
- opts = s
- Counter.pl displays: 19318
Increment the site counter & display it
- pageid = com000-000 (Note: this is the site, not a page on the site)
- no options
- Counter.pl displays: 19319
Don't increment counters, display site counter owning the page
- pageid = com000-001
- opts = sn
- Counter.pl displays: 19319
Don't increment, display site counter
- pageid = com000-000 (Note: this is the site id, not a page id)
- opts = n
- Counter.pl displays: 19319
Increment counters but don't display
- pageid = com000-001
- opts = d
- Counter.pl displays:
No page ID
- no pageid
- opts = s
- Counter.pl displays: Missing Page ID
Unregistered page
- pageid = com000-999
- no options
- Counter.pl displays: Page ID not registered.
Could not lock Counter database
- Counter.pl displays: ????
| Copyright 2000,2001 CIRR.COM | Contact Us |
Referral Program |
Support |
| $Id: CounterTest.html,v 1.3 2002/04/29 22:15:57 cirr Stable $ | Terms of Service | Privacy Information |