Forum Moderators: coopster

Message Too Old, No Replies

Newbie - script exec question

         

mcombes

6:52 pm on Nov 20, 2003 (gmt 0)

10+ Year Member



Hello,

Im trying to come up with a CGI (Perl or PHP) script to return a URL when called from an <IMG> tag. This is a basic "display image" kind of script used to display counters on webpages...

I understand i should use SSI to call the script : <IMG SRC="<!--#exec cgi='/cgi-bin/script.cgi'-->">.
However, this obviously only works on an actual hosted webpage.

Instead, i need to call the script from a webpage sent by email (a newsletter). Ideally, the script should return a URL to the image, after it read the headers of the HTTP request. I figure that would be a way to collect the user-agent of the email program, to better tailor future newsletters...

Is it actually possible to catch the user-agent that way?

TIA,

-marc

jatar_k

6:07 pm on Nov 21, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld mcombes,

take a look at this active thread, the discussion is on going about what you need to do.

[webmasterworld.com...]

mcombes

4:56 pm on Nov 24, 2003 (gmt 0)

10+ Year Member



Hi Jatar_k,

Thank you for your reply! The thread (and the tracking pixel - web bug) perfectly answered my needs.

-marc