I've been looking around the web, and I found many people had problems trying to use SSI inside of PHP documents. I also have this problem, and I found a solution: the Virtual() command. (I'm running latest version of Apache + Php on windows98)
The only problem is... from what I can tell, this command doesn't work on windows based servers. Therefore, it won't work for me. Does anyone know if there's a workaround for windows? Or how to use SSI in PHP documents on Win32 Apache? It would really help me out.

Thanks

    I also have this problem with SSI on Windows/Apache. A simple work around would be to use PHP's require or include.

    include("class.YourCode.php");
    require("class.YourCode.php");

      Jeff Hines wrote:

      include("class.YourCode.php");

      require("class.YourCode.php");

      Hmm...
      That doesn't appear to work for cgi scripts... it gives me a fatal error for both include() and require(). The problem is, I ned to execute the scripts and return the result, not just include the script source.
      Thanks

        Um... I tried it, it gave me "invalid parameter." I belive that would just include the source code of the .cgi script, though, right? What I need is to be able to somehow execute the .cgi script and then include the output in the webpage... like the ssi execute command. and Virtual() doesn't work on win32. It may be impossible, I was just wondering if anyone had managed it on win32.
        Thanks

          8 months later

          Hello,

          I've encountered the same problem. If you find a solution please mail me.

            5 months later
            Write a Reply...