Home > php教程 > php手册 > PHP之php_curl.dll错误解决方法

PHP之php_curl.dll错误解决方法

WBOY
Release: 2016-06-13 10:40:14
Original
834 people have browsed it

Windows下面php5找不到php_curl.dll的问题

由于要用到Curl,所以设置的时候提示这样的错误:unable to load dynamic library ‘….php_curl.dll’

我的环境是Apache/2.2.14 (Win32) PHP/5.3.0,按理说php5的安装是很简单的,直接指定extension_dir = “c:/php523/ext/”就可以了,像gd2, mysqli和mysql_dll都没问题,唯独 php_curl.dll总是提示出错。试着修改PATH路径,把DLL复制到/windows/system32/,还是提示找不到 php_curl.dll。

最后,终于在php.net上找到这么一句话: Note to Win32 Users: In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH.

在php根目录找到这两个文件,复制 libeay32.dll 和 ssleay32.dll到/windows/system32/,终于搞定,phpinfo出现如下信息:
cURL support enabled
cURL Information 7.19.4

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template