Im working on a script that integrates online shopping.
I have code like this (simplified):
// $asImageurls - array of string with image url's foreach($asImageurls as $sImageUrl) { $imageContent = @file_get_contents($image); // create filename, save image etc. }
Connecting to a remote server, uploading an image takes a lot of time, and this is not very good when I need to import 500 products.
I was thinking about parallel loading, but I do not know how to start.
What can I do to make it faster?
Kamil source share