Re: Executing Shell Commands.
| From: | Maxim Maletsky | Date: | Thu, 23 Jan 2003 21:31:40 +0000 |
| Subject: | Re: Executing Shell Commands. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132897@lists.php.net to get a copy of this message | ||
Use the execution operator backtricks (``)
<?php
echo '<pre>';
echo
ls -la;
?>
will throw you the shell's ls -la to the browser
--
Maxim Maletsky
maxim@php.net
scott <ScottLinux@mn.rr.com> wrote... :
> Hello,
>
> Does anybody know how to execute a shell command from PHP on a Linux
> system?
>
> Thanks,
> Scott
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>