I must save ~5000 images to disc and my script is running very slow. Among others, my script contains a foreach loop which saves images to disc. I guess the problem is with file_put_contents function , because when i comment it, everything works super fine. Here is my code:
file_put_contents($pathimg .'.jpg', file_get_contents($url));
file_put_contents($pathimg . '.jpg', file_get_contents($url3));
Is there a way to save these images faster?Thanks
Aucun commentaire:
Enregistrer un commentaire