Home > Backend Development > PHP Tutorial > wecenter—enable CURL extension to allow the server to support PHP curl function (remote collection), wecentercurl_PHP tutorial

wecenter—enable CURL extension to allow the server to support PHP curl function (remote collection), wecentercurl_PHP tutorial

WBOY
Release: 2016-07-13 09:44:30
Original
1263 people have browsed it

wecenter—enable CURL extension, let the server support PHP curl function (remote collection), wecentercurl

curl(), file_get_contents(), snoopy.class.php these three remote Tools used in page crawling or collection,

I still prefer to use snoopy.class.php because it is more efficient and does not require server-specific configuration support. It can be used in ordinary virtual hosts;

file_get_contents() is slightly less efficient. In common failure situations, curl() is quite efficient and supports multi-threading, but you need to enable the curl extension.

The following are the steps to enable the curl extension:

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

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

 3. Restart apache or IIS.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1048760.htmlTechArticlewecenter—enable CURL extension to allow the server to support PHP curl function (remote collection), wecentercurl curl(), file_get_contents( ), snoopy.class.php are used in crawling or collecting these three remote pages...
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