There are a lot of records about Denwer and file_get_contents problems at https , but, alas, there is no sensible answer.

We write:

 json_decode(file_get_contents('https://api.vk.com/oauth/access_token?сlient_id='.CLIENT_ID.'&code='.$_REQUEST['code'].'&client_secret='.SECRET), true); 

We Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? : Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

How to treat the patient? Preferably not by traditional medicine, but by writing recipes with specific medicines. :-)

extension=php_openssl.dll - worth it. Денвер is the latest version.

    3 answers 3

    How to cure openssl problem in Denwer:

    1. Make sure that the working configuration is the one that will be checked (by default it is php.ini ) - you can use the php_ini_loaded_file function .
    2. We check that in this configuration ini-file there is a line extension=php_openssl.dll , and that it is not commented out.
    3. We check the presence of the file %PHP_DIR%/ext/php_openssl.dll . If there is none, then go here and download the add-on. The package includes missing php_openssl.dll . Make a backup of the file php.ini , extinguish Denver and install the extension package.
    4. Make sure the installer does not change the php.ini . Most likely, changed.

      • Edit the "updated" php.ini , again including the line extension=php_openssl.dll
      • or restore php.ini from backup.
    5. Restart Denver.

    Checking:

     <?php error_reporting(E_ALL); $file = file_get_contents('https://www.google.com/'); die($file); ?> 

    In general, stop yuzat Denver. Put a vbox, a linux on it, then nginx, which is fairly easy to configure. This I did not think from the 13th year, I just forgot to update the answer. Debian wheezy + nginx + php + fpm (+ up to X modules from packages) in an hour or two. Do not be afraid of change;)

      did you forget to enable it when you configured PHP. It is clearly written: "You forgot to enable it in the php settings" open and enable php.ini

      • extension = php_openssl.dll - worth it. OK, yes? :) - KAFT
      • ; extension = php_openssl.dll like this, right? - Andrey Chepurnoy
      • ; - this is a comment. - KAFT
      • Then I can only offer to change Denver for something else - Andrey Chepurnoy
      • Желательно не народной медициной, а написав рецепты с конкретными лекарствами. :-) Желательно не народной медициной, а написав рецепты с конкретными лекарствами. :-) - KAFT
      1. Uncomment; extension = php_openssl.dll in php.ini
      2. Throw php_openssl.dll in the \ usr \ local \ php5 \ ext folder
      3. Denwer -> restart