note 69343 deleted from function.shell-exec by betz
| From: | betz@php.net | Date: | Sat, 02 Sep 2006 11:36:16 +0000 |
| Subject: | note 69343 deleted from function.shell-exec by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116612@lists.php.net to get a copy of this message | ||
Note Submitter: couloum ATT gmail DOTT com
----
Under windows and IIS, i had the error "CGI Error. The specified CGI application misbehaved by
not returning a complete set of HTTP headers."
with this very simple code :
<?php
$output = shell_exec("net user");
echo $output;
?>
The problem was that the user IUSR_MACHINENAME had not the execution right on the files net.exe and
net1.exe in c:\windows\system32