Home > Backend Development > PHP Tutorial > curl turns on the CURL extension to allow the server to support remote collection of the PHP curl function

curl turns on the CURL extension to allow the server to support remote collection of the PHP curl function

WBOY
Release: 2016-07-29 08:44:33
Original
958 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 a 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 the curl extension:
 1. Copy the three files php_curl.dll, libeay32.dll, ssleay32.dll in the PHP folder to system32;
 2. Copy php.ini (under the c:WINDOWS directory) Remove the semicolon in ;extension=php_curl.dll;
 3. Restart apache or IIS.

The above introduces curl to enable CURL extension, so that the server supports remote collection of PHP curl functions, including curl content. I hope it will be helpful to friends who are interested in PHP tutorials.

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