![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| ||||
| If memory serves, there isn't a way to get the files in an presorted order. Something like this should work though: PHP Code: |
| ||||
| I was thinking; Getting the amount of files in the folder, then store the first file in array[filecount] then the second filecount-1 etc etc then using a loop to go through each one 0-9. |
| ||||
| You know what? I missed that you wanted them sorted by time -- I sorted them alphabetically for you. Try this code instead: PHP Code: |
| ||||
| Quote:
I make a file containing the things I want to be put on the page and put it in the News folder. At the momment it is displaying the contents of the oldest files first, I want it to display the oldest ones last. |
| ||||
| Ah, thanks for letting me know what's wrong. Change PHP Code: PHP Code: |
| The Following User Says Thank You to TeraTask For This Useful Post: | ||
MrPickle (02-05-2008) | ||
![]() |
| Thread Tools | |
| Display Modes | |
| |