SSI in CGI

liunx

Guest
Hey Guys, quick question for ya...

Am I able/allowed to put an SSI call in the output of a CGI? Can it be in my "print <<HTML;" statement, or do I need to do something special?

Example:

print <<HTML;
...blah...
<!--#exec virtual="../cgi-bin/rate.cgi" -->
...blah...
HTML

Ideas, comments, suggestions, ways around this?

My goal is to put a rating thing in the middle of a page created by CGI. If you need some more details...lemme know.

Thanks,

JeremyNo there is no way to put SSI in a cgi script. The page that contains SSI must be named with an .shtml extension. There are way to get around this if you want to use a file in the script, try searching the forums or look a little lower in this thread as I have posted the answer just a few days ago.
Good Luck,
PaulThere is no way to tell the server to parse .cgi files as well as .shtml?

I'm just curious at this point, aside from the fact that I want this to work.

Jeremy
 
Back
Top