Re: ls as function.

From: Date: Wed, 12 Nov 2003 23:38:35 +0000
Subject: Re: ls as function.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169403@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*
www.php.net/glob

« previous php.general (#169403) next »