PHP curl causes performance bottlenecks and how to optimize it

Source: Internet
Author: User
PHP curl causes a performance bottleneck. how can we optimize it? Question: 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 PHP curl causes performance bottlenecks, how to optimize?

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 files, search for "php curl multithreading" or see [[http://www.lijingquan.net/php-mtidown.html | a multi-threaded PHP download class online]?

If you just get interface data, look at [[http://blog.longwin.com.tw/2009/10/php-multi-thread-curl-2009/ | PHP uses CURL to synchronously crawl multiple Web pages] and the final reference of the article

[[Http://blog.csdn.net/bill200711022/article/details/6861065133] the difference between common methods is also the best in libcurl speed and stability. In addition, some frameworks provide similar functions, such as Fat-Free Web: http, which also encapsulates fsockopen.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.