Hi,
How do you sort the files by their modified time?
For example, I get their last modified time by:
filemtime($path/$filename);
Then what do I do?
Thanks
| SitePoint Sponsor |





Hi,
How do you sort the files by their modified time?
For example, I get their last modified time by:
filemtime($path/$filename);
Then what do I do?
Thanks
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein



If you are using MySQL to serve up the page, create a column called lmt and then whenever you change a page, punch in the date and time.
In your PHP script's, SELECT statement you would have SORT BY lmt DESC. Hope that helps!
Last edited by JustForWebmasters; Jun 16, 2001 at 08:14.
Corbb O'Connor
Looking for quality website design or database programming?
Contact me for more information and a FREE quote!





okay..how do i punch in the date and time? =)
is there a way to grab the last modified time form the file, then sort from there?
i already have files in the database. opps
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
Bookmarks