> Programming Languages > Perl
Various Topics Home | Disclaimer | Report Adult Posts

Various Topics on Perl



Perl - "SSI Question" in Programming Languages


Old 11-18-2004   #1
..ni.. ..pl..
 
Default SSI Question

hey all,

someone told me to read and act on cookies by using javascrpt within the
webpage. now in my Perl reading i came across SSI statements.

i.e.<!--#exec cgi="/cgi-bin/whattimeisit.cgi"-->

and i was curious why not use statements like that to read a users cookies
and do a redirect if i have to. now granted, i don't know if this works,
and when i get back to my programming machine i will test it. (otherwise i
would have done that first)

but the point is, even if it does, that's doesn't make it the right way. so
i was curious...would this be considered bad? kloodge? cheesy? band-aid?
etc.

thanks ahead,

daniel


 
Old 11-18-2004   #2
..cha.. ..ati..
 
Default Re: SSI Question

On Thu, 18 Nov 2004 13:44:49 -0500, daniel kaplan wrote:

> hey all,
>
> someone told me to read and act on cookies by using javascrpt within the
> webpage. now in my Perl reading i came across SSI statements.
>
> i.e.<!--#exec cgi="/cgi-bin/whattimeisit.cgi"-->
>
> and i was curious why not use statements like that to read a users cookies
> and do a redirect if i have to. now granted, i don't know if this works,
> and when i get back to my programming machine i will test it. (otherwise i
> would have done that first)


What you will find is that you can't do a redirect from a script called
via SSI.

>
> but the point is, even if it does, that's doesn't make it the right way. so
> i was curious...would this be considered bad? kloodge? cheesy? band-aid?
> etc.


Personally my feeling is that if you are going to the trouble of writing a
perl script, you would be better off having the script deliver the entire
page and doing away with the SSI, because both incur the overhead of
starting a perl interpreter and the former is much more powerful in the
same way that a nuclear explosion is much more powerful than a mouse fart
(for instance you can do redirects).

SSI is rarely (never?) the best solution these days.

Rich
 
Old 11-18-2004   #3
..ni.. ..pl..
 
Default Re: SSI Question

"Richard Gration" <richard@zync.co.uk> wrote in message
newsan.2004.11.18.19.16.00.864211@zync.co.uk...

> What you will find is that you can't do a redirect from a script called
> via SSI.


many thanks, JUST sat at my machine (with all my code) and was about to try
it...was hoping i could, but hey, that's obviosuly NOT the way to do it.

> Personally my feeling is that if you are going to the trouble of writing a
> perl script......
> SSI is rarely (never?) the best solution these days.


many thanks for your all input

daniel


 

Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0