If I select all the links from my database using a simple query and then loop through them, I could open the URLs one by one. Then, once I find the link to the larger jpg image, I could just place the file into file_get_contents() and save it couldn't I?
The question is, how do I get all the jpg links out of the URL? I specifically only need the first link, but gathering all of them and only looking at the first would work also.
Second, once I place the file link into file_get_contents(), how do I tell it to save those contents?