News Feed
Sections




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

IBuildings Blog:
Multithreading in PHP with CURL
April 01, 2008 @ 16:23:08

As mentioned on the Zend Developer Zone, there's a new tutorial posted on the IBuildings blog (by Lineke Kerckhoffs-Willems) about performing some multi-threading magic in PHP with the help of cURL.

Each PHP request is a separate thread. There are some workarounds like using pcntl_fork, starting multiple commandline php processes using the exec command or even using ajax. Another possibility is using the Curl library. Besides the basic functions described above Curl offers the "multi" functions for retrieving content from several url's at the same time.

Examples are included showing how to make these "multi" requests via PHP's cURL support (calling URLs with a "seconds" value on the end).

0 comments voice your opinion now!
multithread curl example tutorial multiple request


blog comments powered by Disqus

Similar Posts

NETTUTS.com: How to Create Your First Joomla Template

NetTuts.com: When You're Hacked in WordPress: Staying Safe Later On

Zend Developer Zone: Zend_Acl / Zend_Auth example scenario

Allan MacGregor: Flexible PHP Development with PHPFarm

Eran Galperin's Blog: Breaking Down The PayPal API


Community Events

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


laravel voicesoftheelephpant conference application language release series performance symfony2 opinion part2 configure php7 podcast introduction framework example interview api community

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