return value of exec()

From: Date: Tue, 22 Feb 2000 17:34:58 +0000
Subject: return value of exec()
Groups: php.version4 
Request: Send a blank email to php-version4+get-10655@lists.php.net to get a copy of this message
Using beta4 I notice that the behaviour of exec() has changed compared to beta 2. This code: <?php $res = exec("date"); print $res; ?> used to print the current date, but with beta 4 it doesn't print anything. Quoted from the php docs: "exec() executes the given command, however it does not output anything. It simply returns the last line from the result of the command." Using an array as the second argument to exec() works as it should, but it seems exec() has quit returning the last line from the result of the command. /Johan Ekenberg

« previous php.version4 (#10655) next »