Heim  >  Artikel  >  Backend-Entwicklung  >  让服务器支持PHP curl函数开启CURL扩展_PHP教程

让服务器支持PHP curl函数开启CURL扩展_PHP教程

WBOY
WBOYOriginal
2016-07-21 14:53:56703Durchsuche

  curl()、file_get_contents()、snoopy.class.php这三个远程页面抓取或采集中用到的工具,默迹还是侵向于用snoopy.class.php,因为他效率比较高且不需要服务器特定配置支持,在普通虚拟主机中即可使用,file_get_contents()效率稍低些,常用失败的情况、curl()效率挺高的,支持多线程,不过需要开启下curl扩展。下面是curl扩展开启的步骤:

  1、将PHP文件夹下的三个文件php_curl.dll,libeay32.dll,ssleay32.dll复制到system32下;

  2、将php.ini(c:WINDOWS目录下)中的;extension=php_curl.dll中的分号去掉;

  3、重启apache或者IIS。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/364679.htmlTechArticlecurl()、file_get_contents()、snoopy.class.php这三个远程页面抓取或采集中用到的工具,默迹还是侵向于用snoopy.class.php,因为他效率比较高且不需要...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn