1

Topic: Multithreading in

It is necessary to make many requests on , I want to do through flows
How  at  with a multithreading?

2

Re: Multithreading in

http://php.net/manual/ru/intro.pthreads.php

3

Re: Multithreading in

In panties;
What for from a gun on sparrows?
http://php.net/manual/ru/function.curl-multi-exec.php

4

Re: Multithreading in

? Without it in any way?

5

Re: Multithreading in

panties wrote:

I want to do through flows

You want - do

6

Re: Multithreading in

curl_multi_exec I can not understand, it is start curl request asynchronously?
I need to cause , to receive the answer and to write down the answer in basis
If at me 1000  that needs to be created 1000 curl elements?

7

Re: Multithreading in

panties wrote:

curl_multi_exec I can not understand, it is start curl request asynchronously?

If roughly speaking - yes (it is necessary to cause repeatedly while all requests will not be processed)

panties wrote:

I need to cause , to receive the answer and to write down the answer in basis

Receive with the help curl_multi_getcontent and do that you want))

panties wrote:

if at me 1000  that needs to be created 1000 curl elements?

Yes.
And you were going to create 1000 flows?