我正在尝试在我的网站上安装Facebook Connect。当我在本地运行时,我收到此错误:
Fatal error: Call to undefined function curl_multi_init() in C:\xampp\htdocs\testing\application\libraries\facebook.php on line 122
这是代码:
class facebookConnection {
// Allow multi-threading.
private $_mch = NULL;
private $_properties = array();
function __construct()
{
$this->_mch = curl_multi_init();
$this->_properties = array(
'code' => CURLINFO_HTTP_CODE,
'time' => CURLINFO_TOTAL_TIME,
'length' => CURLINFO_CONTENT_LENGTH_DOWNLOAD,
'type' => CURLINFO_CONTENT_TYPE
);
}
答案 0 :(得分:2)
您的WAMP设置没有Curl Multi扩展名。做一个phpinfo并检查可用的扩展名。谷歌如何在你的盒子上启用curl_multi