note 32866 deleted from function.shell-exec by cmb
| From: | cmb@php.net | Date: | Sun, 14 Jul 2019 11:33:01 +0000 |
| Subject: | note 32866 deleted from function.shell-exec by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211585@lists.php.net to get a copy of this message | ||
Note Submitter: eremi at eremi dot net
----
To output the command has it should be, you can do the str_replace trick above, or you can put the
output in a <pre> tag.
Example:
<?php
$output = shell_exec("[command]");
echo "<pre>$output</pre>";
?>