Execute a cgi inside of php?
| From: | (Richard Creech) | Date: | Thu, 12 Dec 2002 01:45:33 +0000 |
| Subject: | Execute a cgi inside of php? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-127944@lists.php.net to get a copy of this message | ||
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