Re: Bug #10638: exec(), system(), ... without reply
| From: | Andi Gutmans | Date: | Thu, 03 May 2001 17:04:25 +0000 |
| Subject: | Re: Bug #10638: exec(), system(), ... without reply | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-53662@lists.php.net to get a copy of this message | ||
At 12:59 PM 5/3/2001 -0400, Joe Brown wrote:
echo typically is not a program. It is a command in the CMD.exe or COMMAND.com programs. $output=exec("cmd -c echo hello"); //should produce the desired effect. Why piping output to a file changes this fact, is beyond me.The definition of exec() is that it uses popen() which starts a shell automatically. Anyway, the problem was very Windows specific and doesn't have anything to do with the syntax he used. Andi