Home > Backend Development > PHP Tutorial > Enable CURL extension to allow the server to support PHP curl function (remote collection)

Enable CURL extension to allow the server to support PHP curl function (remote collection)

高洛峰
Release: 2023-03-04 07:58:01
Original
1272 people have browsed it

curl(), file_get_contents(), and snoopy.class.php are three tools used in remote page crawling or collection. Snoopy.class.php is still used because it is more efficient and does not require Server-specific configuration support can be used in ordinary virtual hosts. file_get_contents() is slightly less efficient. In common failure situations, curl() is very efficient. It supports multi-threading, but the curl extension needs to be enabled. The following are the steps to enable curl extension:

 1. Copy the three files php_curl.dll, libeay32.dll, ssleay32.dll under the PHP folder to system32;

 2. Copy php.ini (c:WINDOWS directory (below) remove the semicolon in extension=php_curl.dll;

  3. Restart apache or IIS.


For more information, enable the CURL extension to allow the server to support the PHP curl function (remote collection). Please pay attention to the PHP Chinese website for related articles!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template