PHP 4.0 Bug #8465 Updated: Cannot exec, system, passthru, backticks

From: Date: Thu, 28 Dec 2000 23:17:14 +0000
Subject: PHP 4.0 Bug #8465 Updated: Cannot exec, system, passthru, backticks
Groups: php.dev 
Request: Send a blank email to php-dev+get-42484@lists.php.net to get a copy of this message
ID: 8465 Updated by: lyric Reported By: che@atlantic.net Status: Open Bug Type: Program Execution Assigned To: Comments: "echo" is not a command under windows, rather something built into the shell (cmd.exe). Hence the error message is correct - you can't run a command that doesn't exist. You should use something like "cmd /c echo hello world". I'll do us both a favour and ignore your other comments Previous Comments: --------------------------------------------------------------------------- [2000-12-28 17:27:44] che@atlantic.net <?php print echo hello world; ?> I have tried exec, backticks, system, passthru, and they all do not work. When running the CGI version, there is no message displayed. When running the isapi version, I get the error message "Warning: Unable to fork [echo hello world] in c:inetpubwwwroothorus.atlantic.nettest.php on line 3". It seems that this has been going on for a while now. "CreateProcess" is a very simple Windows API call. If PHP is going to beat ASP, this needs to be resolved. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8465

« previous php.dev (#42484) next »