Cody Pendant has asked for the wisdom of the Perl Monks concerning the following question:
How it works is, they put an image tag into their page, WIDTH=1, HEIGHT=1, and SRC=http://myserver.com/counter.pl
From that, every time they get a hit, I get a hit too and can count it and do whatever else needs doing.
What I want to know is, what should I return from that hit so as not to generate errors every time it happens?
I'm assuming I can use a Content-type: image/gif or similar to send back something, that way there won't be an error generated, but what do I send back? What's the minimum code I can send back which will "convince" the browsers/servers involved that it is a gif when in fact it isn't?
--
($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hit Counter Using IMG Tag To Call Script
by tstock (Curate) on May 12, 2002 at 06:06 UTC | |
|
Re: Hit Counter Using IMG Tag To Call Script
by belg4mit (Prior) on May 12, 2002 at 06:23 UTC | |
|
Re: Hit Counter Using IMG Tag To Call Script
by Chady (Priest) on May 12, 2002 at 07:01 UTC | |
by tachyon (Chancellor) on May 12, 2002 at 16:17 UTC | |
by tjh (Curate) on May 12, 2002 at 16:22 UTC | |
by samtregar (Abbot) on May 12, 2002 at 21:58 UTC | |
by samtregar (Abbot) on May 12, 2002 at 22:01 UTC | |
by tachyon (Chancellor) on May 13, 2002 at 00:54 UTC | |
|
Re: Hit Counter Using IMG Tag To Call Script
by Anonymous Monk on May 12, 2002 at 17:27 UTC |