Heim  >  Artikel  >  Backend-Entwicklung  >  错哪了Fatal error: Call to undefined function curl_init() in

错哪了Fatal error: Call to undefined function curl_init() in

WBOY
WBOYOriginal
2016-06-13 10:09:06869Durchsuche

哪里错了Fatal error: Call to undefined function curl_init() in?
我调式PHP的时候执行到这里就出错了
Fatal   error:   Call   to   undefined   function   curl_init()   in   D:\apache2\htdocs\SimpleStore.php   on   line   73

        这个是我的ext
      extension=php_mbstring.dll
      extension=php_bz2.dll
      extension=php_curl.dll
      extension=php_dba.dll
      extension=php_dbase.dll
      extension=php_exif.dll
      extension=php_fdf.dll
      extension=php_filepro.dll
      extension=php_gd2.dll
        .....

extension_dir=c:\php\extensions

怎么还是报这个问题?


------解决方案--------------------
curl_init() 没有定义.请定义或include

------解决方案--------------------
phpinfo看下
或者
function_exists()下
看是否已经支持CURL
------解决方案--------------------
php_curl.dll CURL,客户端 URL 库函数库 需要:libeay32.dll,ssleay32.dll(已附带)
请将支持库放在系统搜索路径中

------解决方案--------------------
php.ini里改
------解决方案--------------------
千万记得重启apache
------解决方案--------------------
怀疑你改的php.ini不是php所加载的.

先phpinfo()一下,看第6行,这个是php所加载的php.ini的路径,尝试修改这个php.ini

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