我知道這是一個經常被問到的問題,但我已經嘗試了所有我發現並且仍然無法使用的問題。用WAMP調用未定義的函數curl_init()錯誤
我在Windows 7(64位)和PHP 5.4.3上使用WAMP 2.2。當我打電話curl_init()在本地主機,我有此錯誤消息:
Call to undefined function curl_init()
我所做的:在WAMP的PHP擴展
- 檢查php_curl
- 刪除;擴展之前= php_curl.dll在我的兩個文件的php.ini
- 檢查的extension_dir = 「C:/wamp/bin/php/php5.4.3/ext/」 在我的兩個文件的php.ini
- 重啓WAMP多次
- 更改DLL的這種所謂修正DLL http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/
- 重啓WAMP多次
當我打電話php_info(),我無法找到捲曲...
可能是DLL缺失 – 2013-04-26 10:32:22
我認爲擴展可能已經損壞。你可以檢查Apache的錯誤日誌,看看你重新啓動wamp時出現什麼錯誤? – Sabari 2013-04-26 10:34:49
Apache錯誤日誌顯示相同的錯誤。 – Arnaud 2013-04-26 12:25:04