in reply to Visitors Counter
Unfortunately not everyone has access to the logs. If that's your situation you can try a technique I've used before with some success. On your main page (or any page you want to count visits) put a <img src="counter.pl"> tag somewhere on the page. "Counter.pl", when called, adds a count to a file somewhere, and then sends back a 1 pixel invisible gif to the browser.
The cool thing about this is that you're making use of a browser's cache behavior to prevent the same visitor from making multiple log hits. Most browsers will cache the output of counter.pl and not re-call the script if someone hits the same page later. Cool, yes?
Of course, it's not perfect as you are depending on the browser to prevent multiple counts (and believe me, it's never a good idea to depend on a browser to do anything :-P) but it should be more accurate than simply counting raw hits like you started with.
Gary Blackburn
Trained Killer
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Visitors Counter
by Trinary (Pilgrim) on Jan 27, 2001 at 22:58 UTC |