I have 200 lines of C# code that I need converted to PHP to run on a webserver. The code reads and parses an xml feed containing paths to remote image files.
It then checks the local filesystem for existing copies of the images, downloads the image files to the file system if it doesn't exist, and then writes an xml file with the local paths of the newly downloaded images.
The script also deletes any local image files older than 7 days.
The resulting local xml file and images are then used in an instance of the JWPlayer ImageRotator.