Solved

readdir order by record date

Posted on 2008-10-20
1
794 Views
Last Modified: 2012-05-05
Hi,
when I use :

while (false !== ($file = readdir($dir_handle))) {
    [...]  
    echo $file;
    [...]
}
seems to return the files by order of the name.

I would like to have them by order record date descending of the file in the filesystem.

Thank you for tips.
0
Comment
Question by:matthew016
1 Comment
 
LVL 15

Accepted Solution

by:
MMDeveloper earned 70 total points
ID: 22758225
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How is this connection happening? 3 20
Correct syntax for subdirectories 9 21
Ajax and PHP 4 31
php date function ( diffrence between two dates ) 6 24
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question