note 109029 added to function.system
| From: | jtzhou at hotmail dot com | Date: | Thu, 14 Jun 2012 08:25:37 +0000 |
| Subject: | note 109029 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188596@lists.php.net to get a copy of this message | ||
$macstr=system("nbtstat -a L7W");
I tried for hourrs in vain for this line in windows server 2003 /iis6, the system always return
empty string, then use
print_r(error_get_last());
it shown "Unable to execute cmd.exe..."
then add exec right for IUSR_MACHINENAME,
it shown "
The specified CGI application misbehaved by not returning a complete set of HTTP headers."
add exec right for nbstat.exe, still got the same problem.
take off the "-a L7W" part, it correctly return the normal message of the nbtstat
command.
I'm still exploring the solutions.
----
Server IP: 115.182.65.88
Probable Submitter: 125.33.179.139 (proxied: 125.33.179.139)
----
Manual Page -- http://www.php.net/manual/en/function.system.php
Edit -- https://master.php.net/note/edit/109029
Del: integrated -- https://master.php.net/note/delete/109029/integrated
Del: useless -- https://master.php.net/note/delete/109029/useless
Del: bad code -- https://master.php.net/note/delete/109029/bad+code
Del: spam -- https://master.php.net/note/delete/109029/spam
Del: non-english -- https://master.php.net/note/delete/109029/non-english
Del: in docs -- https://master.php.net/note/delete/109029/in+docs
Del: other reasons-- https://master.php.net/note/delete/109029
Reject -- https://master.php.net/note/reject/109029
Search -- https://master.php.net/manage/user-notes.php