03.02.2014 Views

php|architect's Guide to Web Scraping with PHP - Wind Business ...

php|architect's Guide to Web Scraping with PHP - Wind Business ...

php|architect's Guide to Web Scraping with PHP - Wind Business ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

46 ” cURL Extension<br />

• The session handles are individually remo ved from the multi handle and<br />

closed using curl_multi_remove_handle and curl_close respectively.<br />

• The multi handle is closed using curl_multi_close.<br />

N ote that this is a fairly simple example that waits until all requests<br />

have completed before attempting <strong>to</strong> process them. If you want<br />

<strong>to</strong> process requests as soon as they return, see the source code at<br />

http://code.google.com/p/rolling-curl/source/browse/#svn/trunk for an example<br />

of ho w <strong>to</strong> do this.<br />

W rap-U p<br />

F or more information on the cURL extension, see<br />

http://php.net/manual/en/book.curl.php.<br />

F or information on installing the cURL extension, see<br />

http://php.net/manual/en/curl.installation.php.<br />

F or information on the cURL extension configuration constants, see<br />

http://php.net/manual/en/function.curl-se<strong>to</strong>pt.php.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!