我有http://www.idiotminds.com/login-with-facebook-in-codeigniter/ 但我有錯誤使用未定義的常量CURLOPT_IPRESOLVE的 - 假定 'CURLOPT_IPRESOLVE'
> A PHP Error was encountered
>
> Severity: Notice
>
> Message: Use of undefined constant CURLOPT_IPRESOLVE - assumed
> 'CURLOPT_IPRESOLVE'
>
> Filename: facebook/base_facebook.php
和我修復CURLOPT_SSL_VERIFYPEER =>假, 但不固定
,但我啓用php_curl
**
cURL support enabled
cURL Information libcurl/7.24.0 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
**
代碼
public static $CURL_OPTS = array(
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
CURLOPT_USERAGENT => 'facebook-php-3.2',
CURLOPT_SSL_VERIFYPEER => false
);
它仍然無法正常工作 幫我請 非常感謝
需要CURL_YOURCODE :)能夠幫助你在這裏 –
我更新了我的代碼。謝謝你 – tinhphaistc