Hi All,
I have a website where an admin can login and upload photos. All the images are placed in a directory and then on another page, i am cycling through the images and displaying them. The client has asked if there is a way to move the images around and place them in any order they want.
Now looking at the site, i'm not sure what order the files are even being displayed. They are definitely not in alphabetical order by filename.
I basically have 2 questions
- Is there a standard way that files are sorted or grabbed by using scandir?
- What is a good solution to allowing a user to sort the photos?