RE: [PHP-DEV] beginner question: how to execute unix command in PHP

From: Date: Tue, 23 Jul 2002 23:10:48 +0000
Subject: RE: [PHP-DEV] beginner question: how to execute unix command in PHP
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-86144@lists.php.net to get a copy of this message
> > 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 php-general@lists.php.net for these types of posts. -- James

« previous php.dev (#86144) next »