Re: Execute a cgi inside of php?

From: Date: Thu, 12 Dec 2002 08:21:37 +0000
Subject: Re: Execute a cgi inside of php?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127962@lists.php.net to get a copy of this message
you can use the curl library to execute the cgi. "Richard Creech" <info@dreamriver.com> wrote in message news:3df7ea3d10c2c3.44507060@dreamriver.com... > > Hello List, > Is there a way to execute a cgi inside of php? This is what a customer wants to do: > > > include("<!--#exec cgi="../cgi-bin/include/horoscopes.cgi" -->"); > > but get an error message: > > Parse error: parse error, unexpected '.' in D:\Inetpub\townforum\wwwroot\orgs\header.php on line 3 > > > The manual says it won't work: > http://www.php.net/manual/en/function.include.php > "Warning > Windows versions of PHP prior to PHP 4.3 do not support accessing remote files via this function, even if allow_url_fopen is enabled." > > The mail archives didn't shed any light on this question. > > > What alternatives might work? > > > Regards, > > Richard Creech > support@dreamriver.com > 250.744.3350 Pacific Time > Free and retail php resources for developers > http://www.dreamriver.com > > > > > > > >

« previous php.general (#127962) next »