Welcome to the Monastery | |
PerlMonks |
Re: Calling a script onto an HTML doc.by thpfft (Chaplain) |
on Oct 24, 2002 at 01:40 UTC ( [id://207600]=note: print w/replies, xml ) | Need Help?? |
with ssi from an shtml file:
and in sinister_tracking_script.pl:
or more simply (unless you want to take the opportunity to generate the html for some of the page) and without requiring SSI:
and from creepy_bug.pl you can retrieve the page address in the same way, log it and then either return a standard image file, print a counter for old times sake, or just not bother. Note that this method is vulnerable to browser caches and proxies and so on: best to add a unique identifier to the image address each time, so that the browser definitely asks for it. and yes, you can set a cookie while returning an image file, which you can't with ssi-included html. Don't use this technique on remote pages, btw, especially not with very small images. People will make wild accusations.
In Section
Seekers of Perl Wisdom
|
|