RE: Bug #8465 Updated: Cannot exec, system, passthru, backticks
| From: | Che Gonzalez | Date: | Sat, 28 Apr 2001 02:23:16 +0000 |
| Subject: | RE: Bug #8465 Updated: Cannot exec, system, passthru, backticks | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-52686@lists.php.net to get a copy of this message | ||
Cool Beans... I am finishing a Web Hosting control panel in php and perl and getting ready to start
looking through php's source code. I've had some other workarounds since that one. I
found host headers not working correctly with fopen on Win32. Also, is_dir not recognizing
directories and stat not recognizing files (or something like that... can't recall now)
-----Original Message-----
From: Bug Database [mailto:php-dev@lists.php.net]
Sent: Friday, April 27, 2001 7:43 PM
To: che@atlantic.net
Subject: Bug #8465 Updated: Cannot exec, system, passthru, backticks
ID: 8465
Updated by: sniper
Reported By: che@atlantic.net
Old-Status: Duplicate
Status: Closed
Bug Type: Program Execution
PHP Version: 4.0.4
Assigned To:
Comments:
This is fixed in CVS. Wait for PHP 4.0.6 to be released.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-03 11:11:53] derick@php.net
Duplicate of 4761
---------------------------------------------------------------------------
[2000-12-28 18:17:14] lyric@php.net
"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
---------------------------------------------------------------------------
[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.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8465&edit=2