> > Hi, I'm just starting to learn PHP. I couldn't find how to exec unix > command and read the result. Basically, I just want to execute "ls -lrt" > and read and display the output. > > This may be very simple question, but for some reason, I couldn't find any > info on executing unix command from PHP. > > Thanks. >
seriously, did you read the manual? php.net/exec php.net/system php.net/passthru or, simply put, perl style, $foo = `ls -lrt`; finally. please use [EMAIL PROTECTED] for these types of posts. -- James -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php