windows下Call to undefined function curl_init() error问题
本地項(xiàng)目中使用到curl_init()時出現(xiàn)Call to undefined function curl_init()的錯誤,去掉php.ini中的extension=php_curl.dll前的分號還是不行,phpinfo()中無curl模塊,于是上網(wǎng)搜索并實(shí)踐了如下方法,成功:
在使用php5的curl庫進(jìn)行g(shù)et、post請求時,發(fā)現(xiàn)調(diào)用curl_init()函數(shù)出錯。找到解決方案,備記一下。
環(huán)境:?
Window 10 x64、PHP?5.6.28、Apache 2.4.25
官網(wǎng)連接?http://php.net/manual/en/curl.installation.php
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
在php安裝根目錄(例如:”D:\Program Files\Php”)和php擴(kuò)展目錄(例如:”D:\Program Files\Php\ext”)下,找到”libssh2.dll”, “php_curl.dll”, “ssleay32.dll”, “l(fā)ibeay32.dll”,拷貝到系統(tǒng)目錄:”C:\Windows\System32”
同時把”libssh2.dll” 拷貝到Apache的bin目錄下(例如:”D:\Program Files\Apache24\bin”)。
?
轉(zhuǎn)載自:http://blog.csdn.net/yuanyuan95/article/details/70093069
轉(zhuǎn)載于:https://www.cnblogs.com/totian/p/7380663.html
總結(jié)
以上是生活随笔為你收集整理的windows下Call to undefined function curl_init() error问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 版本号控制-GitHub
- 下一篇: CSS仿艺龙首页鼠标移入图片放大