php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6890 Problem executing external program
Submitted: 2000-09-26 12:05 UTC Modified: 2001-03-08 20:21 UTC
From: Jason at hspace dot net Assigned:
Status: Closed Package: IIS related
PHP Version: 4.0.2 OS: Windows 2000
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: Jason at hspace dot net
New email:
PHP Version: OS:

 

 [2000-09-26 12:05 UTC] Jason at hspace dot net
I tried using exec() or system() or popen() or any function to execute an external program. All returned Access Violation, or script unable to execute program, errors.
Possibly a bug in PHP for Windows. I've used exec() on Linux and it works correctly.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-08 16:59 UTC] cynic@php.net
is this still valid for 4.0.4?
 [2001-01-08 17:11 UTC] derick@php.net
Which serverplatform and sapi are you using? (ISAPI/CGI/Apache)?

 
 [2001-03-08 20:21 UTC] sniper@php.net
Not enough info, no feedback.

--Jani

 [2004-07-19 22:50 UTC] tim at nhwebgroup dot com
I have IIS 6.0 on windows 2003 server
and the latest PHP running and i get these errors

Warning: shell_exec(): Unable to execute 'myPdfExport.exe in W:\WebRoot\site_com\pdf_export.php on line 6

I can't execute any EXE programs in IIS 6 with the shell_exec() function.

I DON't want to give the web user rights to the cmd.exe file in the system folder.

Is there a fix?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 04:01:29 2025 UTC