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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hsutanto78 at hotmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jan 14 02:01:28 2025 UTC