Solved

readdir order by record date

Posted on 2008-10-20
1
792 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

776 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