A
A
aarty202021-12-22 22:39:12
AJAX
aarty20, 2021-12-22 22:39:12

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

1 answer(s)
I
imdeveloper, 2021-12-22
@link_web

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 question

Ask a Question

731 491 924 answers to any question