multi curl - mCURL and Timeout in PHP5

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
buttsp
Forum Newbie
Posts: 13
Joined: Thu May 11, 2006 9:17 am

multi curl - mCURL and Timeout in PHP5

Post by buttsp »

Hello Guys,
I have heard that in php5 there is a built in support for mCURL or in other words it is possible to open multiple parallel connections with different feeds/urls?
Now if the above is true then somebody please also tell me if it is possible to set a timeout (in millisecond) for each single connection as opposed to set a global timeout connection for all the feeds?


In Nutt-shell, I want to find out, how this mCURL feature (if possible) handles timeouts on a single feed level?

Any small code snippet help would be really appreciated.

Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

curl_setopt() requires the curl resource handle. One can assume that sets options per resource.
Post Reply