It looks like Apache 2.0 supports parsing CGI scripts for SSI. I found this at http://httpd.apache.org/docs-2.0/new_features_2_0.html:
Filtering Apache modules may now be written as filters which act on the stream of content as it is delivered to or from the server. This allows, for example, the output of CGI scripts to be parsed for Server Side Include directives using the INCLUDES filter in mod_include. The module mod_ext_filter allows external programs to act as filters in much the same way that CGI programs can act as handlers. Todd F. ----- Original Message ----- From: "Todd Farmer" <[EMAIL PROTECTED]> To: "Todd Wade" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 10, 2003 9:23 AM Subject: Re: server side includes using cgi > I think I remember this was to change with Apache 2.0. Does anybody > know if this is true or just wishful thinking? > > Todd F. > > > > > "Dale Young" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > Hello all, > > > > > > I have been trying include a 'server side include' in a cgi script > used to > > generate a html page with no success. I have redirected the output > from the > > script to a static html file which displays correctly in my browser > (i.e. > > ssi configured ok) - so I'm thinking that either it can't be done, or > my > > syntax is incorrect (refer below). Note that there is no error > message (to > > screen, or in the log files), though the include statement does exist > in the > > source when viewed through my browser. > > > > > > After searching far and wide I have been unable to locate any > > info/examples specific to this issue - possibly indicating that I'm > going > > about this the wrong way (likely since I'm fairly new to perl/cgi). > At this > > point I have resolved to open a file handler and read in the html (vi > print > > statements). > > > > > > Any direction/assistance on the matter would be much appreciated. > > > > > <snip example /> > > > > Im assuming your server is apache. It just dosent work like that: > > > > http://groups.google.com/groups?threadm=20020708160258.92384.qmail% > 40onion.perl.org > > > > What you can do is open the file and print its contents: > > > > [EMAIL PROTECTED] misc]$ cat file.txt > > one > > two > > three > > [EMAIL PROTECTED] misc]$ perl > > use warnings; > > use strict; > > use IO::File; # comes with perl > > > > print( readline(IO::File->new('./file.txt')) ); > > Ctrl-D > > one > > two > > three > > > > Todd W. > > > > > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]