note 15383 added to function.exec
| From: | Yannis dot BRES at cma dot inria dot fr | Date: | Fri, 07 Sep 2001 16:30:16 +0000 |
| Subject: | note 15383 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17775@lists.php.net to get a copy of this message | ||
It seems that exec first launches a shell (command processor) under Linux, but not under Windows.
Therefore, redirection tricks like 2>&1 do not work under Windows. In order to force the
launching of an executable through a command processor under Windows, and be able to use
redirection, prepend getenv( "COMSPEC" ) . " /C " to the name of your
executable.
http://www.php.net/manual/en/function.exec.php