in reply to Re: #exec in SSI
in thread #exec in SSI

But I'm not trying to include it, I'm trying to execute it!

#include won't execute the file.....

Jim.

Replies are listed 'Best First'.
Re: Re: Re: #exec in SSI
by simon.proctor (Vicar) on May 08, 2002 at 10:52 UTC
    The virtual directive is intended to be the smart way to include information into a page. Whether its a page or a program you are still attempting to 'include' its output into your page. The advantage to using virtual is that you can use files or programs without having to change the whole of your include statement.

    Its also a little securer.

    Now I know apache supports both and so does IIS, but as to whether you can include CGI apps in a 'shtml' page on IIS - well thats one to look to MS about.
Re: Re: Re: #exec in SSI
by Cyrnus (Monk) on May 08, 2002 at 10:46 UTC
    #include executes the file and then includes the output. I've used it that way many times.

    John
      Not in IIS it doesn't. I've tried.

      If mycode.pl contains:

      print "this is from the included .pl file<br>\n";
      What you get in the HTML from the server (displayed in the browser) is:
      print "this is from the included .pl file<br>\n";
      The perl doesn't get executed, just the contents of the file get included.

      Jim.