> I would like to use the file_exists() or something similar to check for the > existance of any of the xml files regardless of what filename it use. Like > file_exist("*.xml") for example..... Anyone know??
http://us3.php.net/readdir <?php if ($handle = opendir('/path/to/files')) { while (false !== ($file = readdir($handle))) { $path_parts = pathinfo($file) if ($path_parts['extension'] == 'xml') { //xml file } } closedir($handle); } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php