Answer the question
In order to leave comments, you need to log in
How to get the result through CURL not in one response, but get the results one by one?
There is a function that sends an image to a third-party server via CURL, then after processing a response comes with the result. Everything works perfectly.
Now the task has become to send up to 10 images at once, everything is ok, they will be sent in one array, but processing 1 image takes up to 1 minute, waiting 10 minutes until 10 images are processed for a very long time :(
How can I receive each image as soon as it is ready?
Someone faced with a similar problem?
Answer the question
In order to leave comments, you need to log in
asynchronous requests https://blog.programster.org/php-async-curl-requests
is better, of course use Guzzle from the example above
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question