Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/public/blog/wp-includes/plugin.php on line 601

List directories by date using PHP


I struggled for an elegant way to list directories and files by date with PHP.  Here is the fruit of much Google-Fu.  This will list directories and files from newest to oldest.

There is 1 comment in this article:

  1. 7/03/2012Joshua Paine say:

    If >1 file has the same mtime, only the last (original directory order) will be displayed.

Write a comment: