How does PHP's curl cause performance bottlenecks and how to optimize it?
Problem:
http://segmentfault.com/question/3032/php%E7%9A%84curl%E9%80%A0%E6%88%90%E6%80%A7%E8%83%BD%E7%93%B6%E9%A2%88-% e5%a6%82%e4%bd%95%e4%bc%98%e5%8c%96
?
?
If you are downloading a file, search for "php curl Multithreading" or [[http://www.lijingquan.net/php-mtidown.html| Web-based multi-threaded PHP download class]]?
If you just get the interface data, see [[Http://blog.longwin.com.tw/2009/10/php-multi-thread-curl-2009/|PHP Using Curl to crawl multiple pages]] and the last reference of the article
[[http://blog.csdn.net/bill200711022/article/details/6861065]] here refers to the difference between common methods, or libcurl speed and stability of the best. Other frameworks provide similar functionality, such as Fat-free's Web::http, which also encapsulates the Fsockopen