I can open a directory and get it to display all the files.
However, how do I change this code so that it displays
a) Files from the latest date created in descending order(latest files on top)
and
b) Limit only the latest 20 files to be displayed.
<?php
$handle=opendir(\'.\');
while (false!=($file = readdir($handle))) {
if ($file != \".\" && $file != \"..\") {
echo \"$file\";
}
}
closedir($handle);
?>
thanx