May 7, 2001, 1:24 PM
Post #3 of 5
Sure, but they require some creative thinking. One way is to in fact have your index file be a cgi script, instead of a HTML document that increments each time someone hits it - of course, this brings up the problem of unique hits, so that is something that you would have to contend with (this is what I use on my site, but it is fairly complicated).
Re: Calling Counter without SSI
[In reply to]
Another possibility is having your script return a GIF image (Try the GD module) which means that you could actually call your script from a <img> tag. Of course, this takes quite a bit of messing with as well.
And then there is the ubiquitous "0-height" frame that redirect services (such as CJB.net) have made so pupular. What this does is create a frameset with two frames: one is 100% height, the other 0%, so in effect the 0% frame is not seen at all. However, the document for the 0-height frame must still be retrieved, so the browser must make a server request - if this request is to a CGI script, then VIOLA, you have counted that person. This is also very good because it usually ellimnates the problem of multiple page counts - because the person browses in the 100% frame, the 0% frame doesn't get called again!
Well, those are just some of the ideas that I can think of off the top of my head - I am sure their are others, but those have worked well for me! Have fun with it!
r j o s e p h
"Violence is a last resort of the incompetent" - Foundation