Use of undefined constant CURLOPT_IPRESOLVE - assumed 'CURLOPT_IPRESOLVE'

后端 未结 2 378
遥遥无期
遥遥无期 2021-01-26 17:09

i have http://www.idiotminds.com/login-with-facebook-in-codeigniter/ but i have error

> A PHP Error was encountered
> 
> Severity: Notice
> 
> Me         


        
相关标签:
2条回答
  • 2021-01-26 17:38

    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

    Reference: http://gcov.php.net/PHP_5_3/lcov_html/curl/interface.c.gcov.php

    0 讨论(0)
  • 2021-01-26 17:41

    Yes, you may get latest curl. But you still have to install php-curl for php. you chould check whether you have or not have it.

    php -i |grep curl
    //this will be return in your linux command line.
    /etc/php/7.1/cli/conf.d/20-curl.ini,
    curl
    
    0 讨论(0)
提交回复
热议问题