When you enable SSI for Apache you do so by associating a MIME type, or a file suffix, with the include module. You do this by making the SSI handler 'server-parsed' be called to handle all requests of the given type.
A common configuration is the following:
AddHandler server-parsed .html Options +Includes
When you setup Apache to execute CGI script you associate the relevent directory, or file suffix (.cgi?) with the CGI handler in a similar manner.
Apache will only run one handler for a given file, and it will be whichever one is setup for that MIME type or suffix.
So you have the choiec - either do the thing as a CGI script by calling your script foo.cgi or write the whole thing as a SSI document and call your script foo.shtml.
The latter approach might be the way for you to go, after all using SSIs you can include the output of an arbitary URL (read CGi script) into your page.
Apache2 allows you to chain handlers together to do what you want, but Apache 1.3.x doesnt.
In reply to Re: Server Side Includes with print <<ENDHTML
by skx
in thread Server Side Includes with print <<ENDHTML
by boat73
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |