[thelist] Including CGI output.

Matthew Fischer mfischer at e-fishsolutions.com
Mon Feb 5 15:12:37 CST 2001


For a CGI you want to execute use:

<!--#include virtual="myscript.cgi" -->

If you just want to insert something from a different file use:

<!--#include file="myfile.txt" -->

Does your page have an .shtml or .shtm extension? Are SSI's enabled on your server? Does the script execute correctly if you just call it on its own, not via SSI?


On 2/5/01 at 10:50 AM, dpadams at island-data.com (David Adams) wrote:

> I have what I hope is a simple question. I would like to call an external
> program through SSI to insert some content into a page before it is served
> using Apache or IIS. I'm having some trouble and do not know if it is the
> CGI I'm calling, or if what I'm attempting is not supported. I've tried:
> 
> #exec cgi="correct path to program"
> 
> #include virtual="/correct path to program"
> 
> It makes since that #exec doesn't work as #exec calls seem to be designed to
> handle entire page requests, not partial requests. It seems like virtual
> should work but it doesn't.
> 
> Any suggestions on combining SSI with external program calls?
> 
> Thanks,
> 
> ------------------------------
>   David Adams
>   Island Data Management
>   Kailua, HI 96734
>   dpadams at island-data.com
>   http://www.island-data.com/
>   808/263-2905
> ------------------------------
> 
> 
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list