Home > Backend Development > PHP Tutorial > PHP环境小疑点

PHP环境小疑点

WBOY
Release: 2016-06-13 12:45:25
Original
863 people have browsed it

PHP环境小问题
Fatal error: Call to undefined function curl_init()

我己按照网上的方法做好相关的修改,可还是没能解决这个问题。

1、在php.ini中找到extension=php_curl.dll,去掉前面的,php.ini一般在c:\windows下面。

2、在php.ini中找到extension_dir = "ext",去掉前面的;,改为extension_dir = "C:\php5\ext"。
"C:\php5\ext"只是示例,即扩展指向的路径要对

3、php_curl.dll、libeay32.dll、ssleay32.dll、php5ts.dll都拷到system32下面去。

4、然后重启电脑,重启Apache。

注:
PHP版本为:PHP Version 5.2.3

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