Extension cURL does not work? [closed]

1

I want to open the login page of a site that has almost all been ready for me, but this error happens:

  

Facebook needs the CURL PHP extension.   Line 19: \ Program Files \ x86 \ EasyPHP-Devserver-16.1 \ eds-www \ core \ api_classes \ facebook \ src \ base_facebook.php

Line 19

if (!function_exists('curl_init')) {
throw new Exception('Facebook needs the CURL PHP extension.');

I went after knowing more about this cURL , and the resolution seemed to be too easy to be true. I would just need to go to the file php.ini and take the ; from the front of the call: extension=php_curl.dll and this did not work.

When you open the file info.php in the browser and search on cURL , the only information that appears is the author's name.

What would it take to make it really work?

    
asked by anonymous 11.04.2017 / 14:44

1 answer

1

I was having this error, to fix it I did the following steps;

  • Make sure your php.ini is returning an error when you start a server (Example: php -S localhost:8080 ), if you have correct it.

  • Take the comment ( ; ) of extension=php_curl.dll

  • Take the comment from extension=openssl

  • If you are in Windows check that extension_dir is as follows extension_dir = "ext"

  • OBS : In php.ini I was having the following error:

      

    Syntax error, unexpected '&'; [...]

    To correct I commented the part before the & , example:

    Before

    Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

    Now

    Default Value: E_ALL ; & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

        
    21.11.2018 / 21:00