Re: ls as function.
| From: | John Nichel | Date: | Wed, 12 Nov 2003 23:41:38 +0000 |
| Subject: | Re: ls as function. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169402@lists.php.net to get a copy of this message | ||
Vincent M. wrote:
Hello, Is there any function to do: $thumb = exec("ls $dir/name*") ; without using the exec function and without making a while: $direc_src_obj = dir($dir) ; while($entry=$direc_src_obj->read()) { ... } So, i am looking for a function which return the result of the unix shell command: ls mydir/name* Thanks, Vincent.$data =
ls mydir/name*;
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com