That is exactly my question! how do I look for a .mp3 file?! I tried if ($file != "." && $file != ".." && $file=="*.mp3") but it doesn't work!
"Matt Matijevich" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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); > } > ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php