/ Published in: PHP
                    
                                        
Loads the contens of a dir an sorts them by the date of creation.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function listdir_by_date($path){
if ($file != '.' and $file != '..'){
// add the filename, to be sure not to
// overwrite a array key
$list[$ctime] = $file;
}
}
return $list;
}
URL: http://www.jonasjohn.de/snippets/php/listdir-by-date.htm
Comments
 Subscribe to comments
                    Subscribe to comments
                
                