RE: [PHP] Newbie... Executing UNIX commands...

2001-05-10 Thread Don Read
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

Re: [PHP] Newbie... Executing UNIX commands...

2001-05-10 Thread Jack Dempsey
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

[PHP] Newbie... Executing UNIX commands...

2001-05-10 Thread macky
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.