note 85225 added to function.exec
| From: | aurora-glacialis at gmx dot de | Date: | Thu, 21 Aug 2008 09:48:05 +0000 |
| Subject: | note 85225 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143699@lists.php.net to get a copy of this message | ||
The article on exec() tells you to use passthrough() if you want to get more than the last line of
output from a command. However mor appropriate would be to refer to shell_exec(), since passthrough
will output the result (just like print()) whereas shell_exec() will give the whole output as a
$string, which is more likely the thing you want if you are not content with exec() delivering only
the last line as $string
----
Server IP: 212.124.37.9
Probable Submitter: 91.13.194.211
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- https://master.php.net/note/edit/85225
Del: integrated -- https://master.php.net/note/delete/85225/integrated
Del: useless -- https://master.php.net/note/delete/85225/useless
Del: bad code -- https://master.php.net/note/delete/85225/bad+code
Del: spam -- https://master.php.net/note/delete/85225/spam
Del: non-english -- https://master.php.net/note/delete/85225/non-english
Del: in docs -- https://master.php.net/note/delete/85225/in+docs
Del: other reasons-- https://master.php.net/note/delete/85225
Reject -- https://master.php.net/note/reject/85225
Search -- https://master.php.net/manage/user-notes.php