Hi all,
Can someone please tell me how i can display contents of a directory in date order? (ie. earliest dates & onwards). Here's my code:
$handle=opendir('results');
while (($file = readdir($handle))!==false) {
if ( $file >= $date) {
include("results/$file"
}
}
closedir($handle);
Can someone please tell me how i can display contents of a directory in date order? (ie. earliest dates & onwards). Here's my code:
$handle=opendir('results');
while (($file = readdir($handle))!==false) {
if ( $file >= $date) {
include("results/$file"
}
}
closedir($handle);