標籤:
參考官方解決方案:http://nz.php.net/manual/en/curl.installation.php
1、php安裝目錄下的ext檔案夾下面是否有php_curl.dll檔案,然後右鍵->屬性->詳細資料,查看版本號碼是否和PHP版本一致;
2、php.ini檔案;extension=php_curl.dll前面的";"去掉
如果以上方法還不行的話,請繼續往下;
3、(如果是windows32位系統)複製 php_curl.dll, ssleay32.dll, libeay32.dll 到system32目錄下
4、複製 libssh2.dll 到 Apache24\bin 目錄下,然後重啟服務
Note: 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. You don‘t need libcurl.dll from the cURL site.
I had to also also copy libssh2.dll into my Apache24 folder for this to work with my PHP 5.6.2 installation. So altogether I had to do the following:
Move to Windows\system32 folder:
libssh2.dll, php_curl.dll, ssleay32.dll, libeay32.dll
Move to Apache24\bin folder
libssh2.dll
Uncomment extension=php_curl.dll
windows下PHP中Fatal error Call to undefined function curl_init()的解決方案