Re: read all files in directory

From: Date: Sat, 11 May 2002 22:52:10 +0000
Subject: Re: read all files in directory
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97181@lists.php.net to get a copy of this message
$dirPath = "C:\somepath"; $dhandle = opendir($dirPath); while ($filename = readdir($dhandle)) { echo $filename . "<br>"; }// end read filenames --- Andreas Indahl <andreas@koga.nu> wrote: > Hi! > > How can I read all files in a directory, when I > don't know which files are > there? > > Sincerely > Andreas Indahl > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com

« previous php.general (#97181) next »