How to read dynamic files on www directory?

Hi everyone!

I’m trying to do the following:

-get a file from an external link

-unzip this file on www

-read all images from a specific folder within this unzipped file

-display all images on a slidebox

The problem is I don’t know how to read these files, since they could change in every request for example:

FIrst request - folderA/img1.jpg

Second request folderA/img545.jpg

the folder name won’t change but the files inside of it will.

Anyone have any ideas how to accomplish this?

Thanks