Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Can I do Server-Side-Includes in Perl?

by btrott (Parson)
on Apr 06, 2000 at 11:22 UTC ( #7014=note: print w/replies, xml ) Need Help??

in reply to Can I do Server-Side-Includes in Perl?

SSIs don't work from within Perl scripts (least I've never known them too). They only work within static documents, because the web server, when it gets a request for a Perl script, hands off control to perl, which is then expected to basically just write its output back to the client.

The server doesn't actually parse the HTML written by the Perl script (as compared to when you use SSIs in a server-parsed HTML file, when the server parses the file to find any SSIs), so your SSIs won't get expanded if you try to include them in the HTML outputted by a Perl script.

  • Comment on Re: Can I do Server-Side-Includes in Perl?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2022-11-26 11:34 GMT
Find Nodes?
    Voting Booth?