Re: Print out all the files in a directory

From: Date: Sat, 17 Apr 2004 16:32:26 +0000
Subject: Re: Print out all the files in a directory
Groups: php.general 
Request: Send a blank email to php-general+get-183718@lists.php.net to get a copy of this message
on that page ther is examples <?php if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { //add your logic to see if it is an .mp3 file right here, that can be done any number of ways echo "$file\n"; } } closedir($handle); } ?>

« previous php.general (#183718) next »