How can I cause file_get_contents() to get images from url and output them as a zip file. e.g
http://example.com/image1.jpg
http://example.com/image1.jpg
http://example.com/image1.jpg
When retrieve with file_get_contents it'll store in a string, Now how can I convert this string into .zip.
it is to be cleared here that Images urls are being extracted from encoded json.