Jump to content

Last 100 files.


outlawstar223

Recommended Posts

That is a good start, I understand what they are doing by putting the date in an array and then sorting the whole array. The reason I did not want to take that approach was because there could be thousands of files and I think that might be a performance problem. I was hoping of a more concise solution.

Link to comment
https://forums.phpfreaks.com/topic/200099-last-100-files/#findComment-1050230
Share on other sites

Unfortunately scandir will not work for my needs.

 

Regarding the database, unfortunately it was not implemented that way although that is the way it should have been implemented.

 

So it seems that the only way is going to have to put  the name and date in arrays and sort it that way. Please if anyone has another option I would be vert thankful.

Link to comment
https://forums.phpfreaks.com/topic/200099-last-100-files/#findComment-1050272
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.