SyntaxFix
Write A Post
Hire A Developer
Questions
Try GLOB()
$dir = "/etc/php5/*"; // Open a known directory, and proceed to read its contents foreach(glob($dir) as $file) { echo "filename: $file : filetype: " . filetype($file) . "<br />"; }