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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 13:01:30 2024 UTC