note 10725 added to exec
| From: | derek at iclinux dot com | Date: | Fri, 19 Jan 2001 03:15:57 +0000 |
| Subject: | note 10725 added to exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9950@lists.php.net to get a copy of this message | ||
This only seems to print the last line of output.
I tried this with fortune using the following:
<?
echo exec(fortune);
?>
It only printed one line of the fortune, I believe that it was the last line.
http://www.php.net/manual/en/function.exec.php