Solved

readdir order by record date

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now