Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: SSI within a Perl CGI script

by talexb (Chancellor)
on Mar 11, 2002 at 16:49 UTC ( [id://150914]=note: print w/replies, xml ) Need Help??

in reply to SSI within a Perl CGI script

A Server Side Include is just a line of HTML. So if the Perl CGI script is outputting the contents of a web page, adding an SSI directive has no special meaning to Perl.

Just output the SSI like any other piece of a web page.

Update:Sinister is right, an SSI is not just a line of HTML -- it is further processed by the web server. But it still does not have any special meaning to a Perl script.

--t. alex

"There was supposed to be an earth-shattering kaboom!" --Marvin the Martian

Replies are listed 'Best First'.
Re: Re: SSI within a Perl CGI script
by Sinister (Friar) on Mar 11, 2002 at 16:59 UTC
    Not quitte true! A server-side include is parsed by the webserver. What perl returns is no further parsed by your $WEBSERVER.

    er formait hyarya.
    "Field experience is something you don't get until just after you need it."

      Only if your webserver supports it. If you are using apache (as most people do), you will need to use 2.0 (still in beta) if you want your cgi output to be server-parsed.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://150914]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-06-21 19:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.