#26725 [Opn->Bgs]: Can't execute shell command inside PHP

From: Date: Sat, 27 Dec 2003 07:26:46 +0000
Subject: #26725 [Opn->Bgs]: Can't execute shell command inside PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52516@lists.php.net to get a copy of this message
ID: 26725 User updated by: hsutanto78 at hotmail dot com Reported By: hsutanto78 at hotmail dot com -Status: Open +Status: Bogus Bug Type: IIS related Operating System: WinXP Japanese PHP Version: 4.3.3 New Comment: I just found the answer, should change the permission for the web user IUSR_<Your Name> to execute cmd.exe ^_^ Hope next time PHP team could be kindly give some additional comments concerning IIS Web Server. Previous Comments: ------------------------------------------------------------------------ [2003-12-27 02:02:20] hsutanto78 at hotmail dot com Description: ------------ can't execute shell command inside PHP (return unable to fork message) Reproduce code: --------------- <?php echo system("C:\\WINDOWS\\system32\\cmd.exe"); ?> Expected result: ---------------- Display WIndows Version Actual result: -------------- Warning: system(): Unable to fork [C:\WINDOWS\system32\cmd.exe] in C:\Inetpub\wwwroot\ping.php on line 3 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26725&edit=1

« previous php.bugs (#52516) next »