note 10688 added to exec
| From: | bvr at xs4all dot nl | Date: | Wed, 17 Jan 2001 17:43:53 +0000 |
| Subject: | note 10688 added to exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9891@lists.php.net to get a copy of this message | ||
I just discovered that you can also execute a command by
place the command string between ` characters. This simply
evaluates to the output of the command.
example:
<? $foo =
ls -al /;
echo($foo);
?>
http://www.php.net/manual/en/function.exec.php