note 75103 deleted from function.exec by danbrown
| From: | danbrown@php.net | Date: | Sun, 04 Jan 2009 16:23:27 +0000 |
| Subject: | note 75103 deleted from function.exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-148798@lists.php.net to get a copy of this message | ||
Note Submitter: martinwinter77 at no-spam-please dot gmail dot com
----
In response to Bob-PHP at HamsterRepublic dot com (18-Oct-2005 11:00):
Since exec() removes trailing whitespace, Bob suggested to use popen() instead. However, if you do
not need the additional features of exec(), it is much simpler to just use shell_exec(), which does
preserve trailing whitespace.