News Feed
Jobs Feed
Sections




News Archive
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

DevShed: Filtering Image Streams with the GD Library in PHP

Marcelo Gornstein's Blog: Making your ivr nodes (call) flow with PAGI

PHP-GTK Community Site: an IMAP Client & Screenshots with Gdk

NETTUTS.com: Create a PHP5 Framework - Part 3

Bit-Tech.net Formus: PHP "raycaster" 3D renderer


Community Events









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


composer introduction framework testing language object zendframework2 api interview community database release podcast opinion tool example code phpunit unittest development

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