php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26725 Can't execute shell command inside PHP
Submitted: 2003-12-27 02:02 UTC Modified: 2003-12-27 02:26 UTC
From: hsutanto78 at hotmail dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.3 OS: WinXP Japanese
Private report: No CVE-ID: None
 [2003-12-27 02:02 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-27 02:26 UTC] hsutanto78 at hotmail dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC