Bug #15647 Updated: exec() only executes internal commands

From: Date: Tue, 30 Apr 2002 08:31:58 +0000
Subject: Bug #15647 Updated: exec() only executes internal commands
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6540@lists.php.net to get a copy of this message
ID: 15647 Updated by: watford@uiuc.edu Reported By: eyal@zvi.org Status: Open Bug Type: Program Execution Operating System: Windows 2000 Server PHP Version: 4.1.1 New Comment: I have the exact same problem. PHP.EXE does NOT have this problem but SYSTEM() and EXEC() do when run from Apache. I too have submitted a bug report. Previous Comments: ------------------------------------------------------------------------ [2002-02-20 13:14:07] eyal@zvi.org Using any of the external program execution methods (exec(), passthru(), etc.) only work with commands that are internal to the command interpreter. For example passthru("dir") or passthru("time /t") work fine, however passthru("ping.exe localhost") or any other executable file - fails. There is no error displayed, the script just continues execution without any noticeable delay. One funny thing is that if a bogus command is passed, eg. passthru("blah_blah.exe"), a line is added to the Apache error log saying: 'blah_blah.exe' is not recognized as an internal or external command, operable program or batch file. My setup is: Windows 2000 Server, Apache 1.3.17, PHP 4.11 downloaded as binaries, configurations pretty straightforward (safe_mode=Off!). I'll be glad to provide any further information. Eyal Zvi. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15647&edit=1

« previous php.bugs (#6540) next »