i need to be able to find all the files in a folder with a certain extension...i was looking at fnmatch but i've never used it before so i was wondering if i could get some help. thanks!
This has been covered before....
<?php $handle = opendir("/path/to/files"); while($file = readdir($handle)) { if(substr(strtolower($file),-4) == ".php") { echo $file."<br />\n"; } } closedir($handle); ?>
thanks a lot! i really appreciate it!