September 18th, 2000, 02:29 PM
Is there any way to include other files in a cgi script? My aim is to have an SSI statement that executes properly when outputted from withtin a cgi script. Is this possible, or do i have to manually open and output the file's contents?
Also, is it possible to call another cgi script from within a cgi script? Thanks, and i apoligise for this being entirely about cgi and not perl
September 19th, 2000, 10:00 AM
In my experience with Apache, you can not output Server Side Includes from a CGI. That is to say that you CAN spit the text out, but they will appear simply as comments.
> Also, is it possible to call another cgi script from within a cgi script?
That depends. If you want to access some function or sub, you can break it out into a "whatever.pl" file, then just do:
in both the programs to access that sub. If you catually want to trigger another script to execute, you can use backticks. I dunno if STDOUT gets bunged up in CGI context when you do that, though.
September 19th, 2000, 02:58 PM