On 10-May-01 macky wrote:
> im using PHP + APACHE on Linux Box
>
> i wonder what command in PHP can i use to execute Unix commands
$foo=`ls`
thats a "back-tick"
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you
for your specific example, check out
http://www.php.net/manual/en/function.readdir.php
lots of simple functions like that have already been written for
you...the joy of php ;-)
-jack
macky wrote:
>
> im using PHP + APACHE on Linux Box
>
> i wonder what command in PHP can i use to execute Unix
im using PHP + APACHE on Linux Box
i wonder what command in PHP can i use to execute Unix commands
i got to read also exec(), system(), passthru(),popen(), and
excapeshellcmd()
but what if i want to use the command "ls" and store ALL output in a
variable
i thought system() is enough.
3 matches
Mail list logo