News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sameer Borate's Blog:
Parallel cURL execution in PHP
August 05, 2010 @ 09:56:05

New on his blog today Sameer Borate has a post looking at his method for making parallel connections with curl based on this library from Pete Wardens.

Most people use the 'easy' mode - in this mode when we issue multiple requests, the second request will not start until the first one is complete. This is known as synchronous execution, and this is the one we normally use. [...] In [multi] mode all requests can be handled in parallel or asynchronously. And it can be quite handy and time saving on many occasions.

He gives some code examples of how to use the library to simplify the curl connections and requests and pass the result off to a callback when it's done. His more practical example shows how to search for a set of terms on Google and return the results for output.

1 comment voice your opinion now!
parallel curl execution tutorial library asynchronous


blog comments powered by Disqus

Similar Posts

DZone.com: Video: PHP 5.3.1, MongoDB and Lithium on Windows 7 / IIS 7

Edd Mann: Storing PHP Sessions/File Caches in Memory using TMPFS

SitePoint PHP Blog: Push your Drupal Site’s Events to your Phone with Pushover

PHPMaster.com: PHP Namespaces

SitePoint PHP Blog: The sysadmin view on \"Why PHP\"


Community Events

Don't see your event here?
Let us know!


community extension voicesoftheelephpant opinion symfony2 laravel example php7 interview introduction performance version podcast conference framework application library series api release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework