使用未定义的常量CURLOPT_IPRESOLVE - 假定为“CURLOPT_IPRESOLVE” [英] Use of undefined constant CURLOPT_IPRESOLVE - assumed 'CURLOPT_IPRESOLVE'
问题描述
我有 http://www.idiotminds.com/login-with -facebook-in-codeigniter /
但我有错误
i have http://www.idiotminds.com/login-with-facebook-in-codeigniter/ but i have error
> 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 => false,
但不是固定的
and i fix CURLOPT_SSL_VERIFYPEER => false, but not fixed
但我已启用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
);
它仍然不工作
帮助我
BIG THANKS
it still not work help me please BIG THANKS
推荐答案
CURLOPT_IPRESOLVE
仅可用> = CURL版本7.10.8,您的CURL版本7.24.0。需要更新CURL,以便该常量可用。此常数的支持仅适用于PHP> = 5.3
CURLOPT_IPRESOLVE
is available only >= CURL version 7.10.8 and your CURL version is 7.24.0. Need to update CURL in order for that CONSTANT to be available. And support for this constant is only available for PHP>=5.3
参考: http://gcov.php.net/PHP_5_3/lcov_html/curl/interface.c.gcov.php
这篇关于使用未定义的常量CURLOPT_IPRESOLVE - 假定为“CURLOPT_IPRESOLVE”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!