PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
take the function I posted here to get a list of files in the galleries. You'll then have to look at each file retrieving their filemtime() to create a sortable list like this:
Store the image info in a table. If you don't you will have to scan each image for its last modified date. Which, if you have a bunch of time can take some time.
first thanks feyd for the code, will try soon, but can it search all the subdirectories, and is there a way to make it exclued some folders? (_thumbs)
next,
hawleyjr wrote:Store the image info in a table. If you don't you will have to scan each image for its last modified date. Which, if you have a bunch of time can take some time.
I understand that i will have run the function every time a user calles the page, could I store the list in $_GET? or would it be better to use a session, i realy dont want to use SQL or any other DB if possible, this site has to be very portable and easy to admin.
if I was to look at the directories instead of the files first to derive wich has had files added, then just search the files within thoes folders, for the newest files
kind of like
->find the 3 newest (or last updated) folders
-->look within newest folders for newest files
--->place filepath/name string in array
would this speed things along?
would I be able to find the correct files?
or would it just create problems?