shell_exec not working with PHP as CGI, but does work as ISAPI
| From: | benjamin delman | Date: | Thu, 31 Oct 2002 21:42:11 +0000 |
| Subject: | shell_exec not working with PHP as CGI, but does work as ISAPI | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16640@lists.php.net to get a copy of this message | ||
Win2K Server SP3
IIS 5
PHP 4.2.3
this code only works if php is ISAPI. any ideas? all help is greatly
appreciated.
ben
-----------------
<?
$postie_str =
"d:\inetpub\scripts\postie\postie.exe -host:mail.autodesk.com -s:\"Form
Processor
Results\" -to:\"mark.wicker@autodesk.com,benjamin.delman@autodesk.com\" -cc:
\"benjamin.delman@autodesk.com\" -replyto:\"benjamin.delman@autodesk.com\" -
from:\"benjamin.delman@autodesk.com\" -file:\"d:\inetpub\scripts\postie\post
ie_temp_54130.txt\" -html";
$returnit = shell_exec($postie_str);
echo("$postie_str<hr>$returnit");
?>