php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8496 Executing external programs
Submitted: 2000-12-30 16:06 UTC Modified: 2001-01-08 16:31 UTC
From: grj at windows2k dot dk Assigned:
Status: Closed Package: IIS related
PHP Version: 4.0.4 OS: Windows2000
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: grj at windows2k dot dk
New email:
PHP Version: OS:

 

 [2000-12-30 16:06 UTC] grj at windows2k dot dk
I am using windows2000 with IIS50
and I am not able to get at output with the
following commands:
system
exec

the command gets executed p? there are no output...
<?
system("ping www.hotbot.com");
?>

I have installed PHP as an CGI but has also tried it with
php4isapi.dll
same problem.

I have tried different versions og PHP4 same problem...
I have tried to change the rights of the IIS user same problem.
I have tried to execute it at the command prompt i works output and all....

The command get executed but NO output.

Kind regards Gert Jensen


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-08 16:31 UTC] cynic@php.net
from the manual:

exec() executes the given command, however it does not output anything. 

Returns the last line of the command output on success, and false on failure. 
If you need to execute a command and have all the data from the command passed directly back without any interference, use the PassThru() function. 

both of these functions work on my machine (NT5, Apache 1.3.15-dev, php4-200101080345), if they fail on IIS, reopen.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 23:00:02 2026 UTC