Re: List Files

From: Date: Fri, 20 Apr 2001 00:19:19 +0000
Subject: Re: List Files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49459@lists.php.net to get a copy of this message
$foo = ls help*; $files = explode("\n",$foo); while(list(,$fname) = each($files)) echo $fname."\n"; --Joe On Thu, Apr 19, 2001 at 08:25:19AM -0400, KPortsmout@aol.com wrote: > Hi, > > Does anyone know how I can list all the files begining with help in one of my > pages. > > So I have a dir which has various files, like so: > > help_me.php > help_you.php > help_us.php > > Is there some command I can use to select all the files and then print them > out? > > TIA > Ade > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net /* Joe Stump * Sr. PHP Developer * http://www.Care2.com http://www.joestump.net http://gtk.php-coder.net */

« previous php.general (#49459) next »