Calling perl from a SSI
Grant McLean
grantm at web.co.nz
Wed Oct 9 19:07:22 CDT 2002
One way to do it would be to include an image tag in your HTML like this:
<img src="http://your.domain/cgi-bin/yourscript.pl?any_params_from_js">
Then yourscript.pl can do what it needs to do before
redirecting to a 1 pixel transparent GIF (or PNG depending
on your patent position - and I believe yours is hanging on
the line for all to see :-) ).
Grant
===============================================================
Grant McLean BearingPoint Inc - formerly The Web Limited
+64 4 495 8250 Level 6, 20 Customhouse Quay, Box 1195
gmclean at bearingpoint.biz Wellington, New Zealand
> -----Original Message-----
> From: Don Jones [mailto:don at gamma.net.nz]
> Sent: Thursday, October 10, 2002 1:20 PM
> To: wellington-pm-list at pm.org
> Subject: Calling perl from a SSI
>
>
> Hi - Im not much of a web developer but an tryingto to
> something you guys may
> be able to help with:
>
> I want to run a perl script every time a certain html page is
> accessed, the
> script doesnt need to write anything back to the browser so
> doesnt need to be
> GCI but I want to pass it variables from the html page - some
> of the variables
> are javascript variables used in the html and others are just
> the environment
> variables HTTP_USER_AGENT & REMOTE_ADDR, it seems that either
> i should make
> the page a cgi - but it has quite a bit of java script in it
> so this is not
> that appealing, or I thought i could just call the perl
> script using SSI exec
> but im not sure you can pass args via SSI - does anyone know
> how to do this?
>
> Am i missing some other obvious way of doing this?
>
> the perl script would just write a line to a log file using
> the variables
> passed to it.
>
> Ideas appreciated
>
> Don Jones
>
> --
> "Intellectual Property" : a tool that the dinosaurs use to make sure
> there are no mammals in the future. - Lawrence Lessig
>
>
More information about the Wellington-pm
mailing list