I know someone helped me with the including all files in a directory, but the problem i have is that i need them to be listing on the actual page in reverse order.... here is the script i'm using to include the files, if anyone can help, it'd be appreciated...
<?php
$path = "files/"; // 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);
}
?>