in reply to Parsing SSI through CGI

The problem that I've run up against is trying to get my script to parse the HTML and execute the SSI directives before printing the page to the browser.

I ran up against this a few years ago. After failing to convince Netscape FastTrack to honor SSI directives my CGI was emitting in HTML, I wrote my own SSI package. You're welcome to whatever pieces of it work for you. The source is here.

With FastTrack, I suspect the problem was that code paths through the web server didn't allow for SSI once a decision had been made to execute a CGI. We never did get to the bottom of it, and later moved on to Apache.

Replies are listed 'Best First'.
Re: Re: Parsing SSI through CGI
by higle (Chaplain) on Feb 01, 2002 at 19:54 UTC
    Wow! Thanks! That looks like it should work. I'll give it a try.

    Thanks again

    ------------------------
    higle
    perl -e 's=$;$/=$\;W=i;$\=$/;s;;XYW\\U$"\;\);sig,$_^=$[x5,print;'