note 32866 added to function.shell-exec
| From: | eremi at eremi dot net | Date: | Mon, 09 Jun 2003 15:29:54 +0000 |
| Subject: | note 32866 added to function.shell-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50033@lists.php.net to get a copy of this message | ||
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>";
?>
----
Manual Page -- http://www.php.net/manual/en/function.shell-exec.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32866
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32866&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32866&report=yes