[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] SSI with PHP pages



"Andy Jacobs" <andy@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Thanks Carrie,
>
> So if I was going to use this on an HTML page:
>
> <!--#exec cgi="/pathto/banner.cgi?cat=Community" -->
>
> Would I use:
>
> include "/pathto/banner.cgi?cat=Community";

Andy, that won't work.  See the manual at www.php.net (great tool).  PHP's
include() function includes the text from the included file, just as if you
had copied and pasted the text from the file directly into the script
itself.  If the include'd file is a CGI file it won't be executed, which is
the behavior you want.  See PHP functions like exec(), system(), passthru(),
etc.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/