The simple answer is that it won't work. SSI's are handled by the web server, and the web server will not parse your script output for them, it will only parse HTML files (or shtml depending on your setup).
I've attached a module we use on occation for this specific purpose. It includes pod if you want the full explaination, but here is a summary. It currently handles virtual includes and execs. use Apt::Utils qw/handleIncludes/; my $html = ... # I assume you have the HTML in a var. my $path = "/the/path/to/the/webserver/root/" my $html = handleIncludes($html, $path); Enjoy. Rob -----Original Message----- From: Troy May [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 5:52 PM To: Beginners CGI List Subject: Using SSI in a CGI program Hello, I have an HTML template which gets inserted into a CGI program. I need to insert an SSI into it, but when the page is created it will not show up like it does with a standard HTML file. Do I need to do anything different to this to execute it correctly so it will work like a standard SSI on my page? Here's what I need to insert: <!--#include virtual="/path/to/header.html" --> When I view source on the ending page of the CGI program I can see it there, but it doesn't execute like it should. Any ideas? Thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Utils.pm
Description: Binary data
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]