"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]