Modify Php File To Sort Display

I have a php script that needs modification. This php script (attached) lists all the zip files in a directory. When I pick one zip file from the list, it unzips it into a temporary folder and displays the pictures. When I press “done” at the bottom, it deletes the temporary folder & files.

Here are the changes that I need:

=>1st, it should only display zip files, not all files
=>2nd, the zip files should be arranged in order of latest (newest) zip files displayed first. Also, when the pictures are displayed, latest picture should be displayed 1st.
=>3rd, I would prefer a drop down display of all the available zip files (option select) as opposed to just listing them on the page.
=>4th, I don’t want the script to display ALL the
pictures all at once since the zip files sometimes contain hundreds of photos (even a thousand). Instead, I will prefer some type of pagination system like display 1st 50 pictures and have a <<previous>> <<next>> link at the top and at the bottom of the displays.

Leave a Reply

Your email address will not be published. Required fields are marked *