Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

readdir order by record date

Posted on 2008-10-20
1
Medium Priority
?
802 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 280 total points
ID: 22758225
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

879 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