I need a script created using PHP that will have a field for URL, then scan that URL for any linked files that have an a certain extension.
The extensions should be an array (ie. {pdf, jpg, gif})
The script will then download each file, renaming it in the order that it appears on the page.
ie. [login to view URL], [login to view URL], [login to view URL], [login to view URL]
The script will then create a ZIP file, delete the original files from the temp directory and display a link to download it the ZIP file. The ZIP file should be randomly named.
For example, this page: [login to view URL]
The script will download each of the images, and the pdf file that is being linked to, renaming the files so that they STAY IN THE SAME ORDER, then provide a ZIP containing all the files for download.