i'm having difficulties downloading about 4000 images from my php script from individual http locations.
It works as follows, every object is an xml file, and each xml file has an unknown number of attachments (images)
i loop through the xml files and then through the attachments where i use file_put_contentsto save the image to my server.
the problem is that i do get the images to my server, but strangely a lot of images get corrupt, it's always the first image of the next xml file.
any thoughts here guys?