note 34762 deleted from function.exec by didou
| From: | didou@php.net | Date: | Wed, 06 Aug 2003 06:19:00 +0000 |
| Subject: | note 34762 deleted from function.exec by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53489@lists.php.net to get a copy of this message | ||
Note Submitter: cparker@swatgear.com
----
Not sure if this has any sort of negative security implication but when trying to return multiple
lines of output (and being unsuccessful) I stumbled across this:
$command = "file -i myfile.txt";
$output =
$command;
echo $output;
Works nicely to capture more than one line of output without dumping it to the browser.
Notice on line #2 I am using ` and not ' or ".
Use with caution!!