curl-and-php
Re: multi_curl with php
Date: Mon, 27 Jun 2011 10:54:35 +0300
Thanks sir, but here is problem
Lets say i have 100 sites to process and in simultaneous i set to 5, as soon
one is finished it will add one more to it.
Now i have 3 steps to take for post my thread on site, 3 executions ,
-> Login on site
-> Open site page for post
-> Post to site
if i add to handle as soon it finish
number to process = 5
-> Login on site
+1 to handle
execute above
see above it will login to all 100 sites first, then i need to repeat above
process to open thread
number to process = 5
-> Open site page for post
+1 to handle
execute above
and last post
number to process = 5
-> Post
+1 to handle
execute above
what i wanted is this way
number to process = 5
-> Login -> Open thread page for post -> Post
execute above for 5 sites
+1 to handle
so instead of 3 requests as above it can login, open thread page and post in
one request for one site then add new site to handle.
Best Regards
On Sat, Jun 25, 2011 at 11:36 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 24 Jun 2011, Admin wrote:
>
> and Sir Daniel if i follow process as you mentioned to add a new handle as
>> soon one is finished, i will have this problem:
>>
>> if i have 100 sites to post and i set to process 5 sites in each batch,
>>
>
> I wasn't talking about "batches". I suggested you keep adding new transfers
> to the handle as soon as one is completed and you can make the number of
> simultaneous transfers any amount you like. Be it 5, 25 or 500. Your choice.
>
>
> --
>
> / daniel.haxx.se
> ______________________________**_________________
> http://cool.haxx.se/cgi-bin/**mailman/listinfo/curl-and-php<http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php>
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2011-06-27