I have a php script that does a get request to an api, and with the results has to fetch over 1000 images.
My problem is that in the process of doing this I always get a timeout.
What should be my best approach for this?
I've tried to do a loop with dividing the response in smaller gets of the files but still getting the timeout.
Should I store the progress, and do even smaller batches?