<?php
$path = "path/directory"; // select path
$cont = @opendir($path);
if (!$cont) {
print "Directory '$path' doesn't exist<br>";
} else {
while ($file = readdir($cont)) {
if ($file != "." && $file != "..") {
if ($path == ".") {
include($file);
} else {
include($path."/".$file);
}
}
}
closedir($cont);
}
?>