PHP.ini Under default configuration , use file_get_contents Read https Link to , It's like this :

Warning: fopen() [function.fopen]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

The solution is 3:
1.windows Under the PHP, Just go to php.ini Zhongba extension=php_openssl.dll Ahead ; Delete , Just restart the service .

1、 open PHP Catalog , stay php.ini Zhongba “extension=php_openssl.dll” Ahead “;” Get rid of 
2、 Copy php In the installation directory : libeay32.dll、ssleay32.dll to c:windowssystem32
3、 Copy php_openssl.dll to c:windowssystem32
4、 restart IIS perhaps apache Environmental Science
So you can open it php Of openssl_open Support , Continue to install

2.linux Under the PHP, It has to be installed openssl modular , After installation, you can access it .
3. If you can't modify the server configuration , So use curl Function to replace file_get_contents function

 /**-- curl for https --**/
function curl_for_https($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
// Without the following Back to you access_token=F5A4FEDE95AD3D88DD29EC1F904B24C8&expires_in=7776000&refresh_token=2BF2DD1B05CF510CD2EEE2466009EFC0bool(true)
// And after the page is output directly It's not going down
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}

file_get_contents Unable to request https More related articles on the solution of connection

  1. file_get_contents Unable to request https The solution of connecting php Turn on curl

    file_get_contents Unable to request https The solution of connecting Method 1: PHP.ini Under default configuration , use file_get_contents Read https Link to , It's like this : Warning: fo ...

  2. solve file_get_contents Unable to request https How to connect

    PHP.ini Under default configuration , use file_get_contents Read https Link to , The following error will be reported , This paper gives the solution error : Warning: fopen() [function.fopen]: Un ...

  3. ssh Slow connection solution

    ssh Slow connection solution Excerpt from :https://blog.csdn.net/qq_14821541/article/details/61915589 2017 year 03 month 13 Japan 12:00:38  So what ...

  4. Linux Vsftpd Connection timeout solution

    Linux Vsftpd Connection timeout solution 2013-11-13 10:58:34|   classification :  Default category | report | Font size   subscribe     resolvent (http://www.lingdus.com/thread ...

  5. ssh Be able to connect and sftp The solution to not being able to connect

    ssh Be able to connect and sftp The solution to not being able to connect   It started yesterday FileZilla Can't log in to the remote server all the time ,ssh Login to OK, Because it's the server , I dare not move . I checked a lot of information and finally solved it . First , Check out the system security day ...

  6. Due to modification /etc/ssh Authority caused ssh Cannot connect exception resolution

    Due to modification /etc/ssh Authority caused ssh Cannot connect exception resolution The phenomenon : $ssh XXX@192.168.5.21 There are the following problems Read from socket failed: Connection r ...

  7. Linux Vsftpd Connection timeout solution ( Passive mode )

    http://blog.csdn.net/qq_15766181/article/details/46554643 Use  FileZilla FTP Client  Connect  Vsftpd FTP, There is no match for ...

  8. CentOS6.5 ssh Remote connection slow solution

    UseDNS no GSSAPIAuthentication no 1. The applicable Order and scheme are as follows :[ Remote connection and command execution ]ssh -p22 root@10.0.0.19ssh -p22 root@10.0.0 ...

  9. CentOS 6 I can't wget https The solution to linking

    CentOS6 The highest version of wget yes 1.11, But unfortunately this version has bug, There's no way to download it https Linked things , So in order to avoid this situation, some people will help the script not to check ssl Parameters of --no-check-ce ...

Random recommendation

  1. Uva 2034

    Find the definite integral ( I didn't see the average at the time ) // Normal polynomials #include<iostream> #include<cstdio> #include<cmath> us ...

  2. WPF Sentiment

    WPF Sentiment UI Layer and logic layer should be separated as much as possible ( decoupling ). Routed Event and Command Than Event The degree of coupling is lower . UI Layer and logical layer “ blood vessel ” It's data association (Data Binding). Try not to try to get through ...

  3. [ Reprint ]ASP.NET in TextBox Control setup ReadOnly=&quot;true&quot; The value is not available in the background

    Original address :http://www.cnblogs.com/yxyht/archive/2013/03/02/2939883.html ASP.NET in TextBox Control settings ReadOnly=" ...

  4. sharepoint 2010 Can't find search can't find ad Users in

    Prerequisite : 1. This user is ad Existing in . 2. This user is also synchronized to userprofile in . Problem phenomenon : stay sharepoint In the personnel selector of , Can't find the added user . Possible causes : 1. Some people say that it is necessary to ...

  5. matlab Image type conversion and uint8、double、im2double、im2uint8 and mat2gray Wait for instructions

    from :http://blog.csdn.net/fx677588/article/details/53301740 1. matlab Image saving instructions matlab The data saved after reading the picture in is uint8 type ( ...

  6. MySQL Encryption performance test

    That's right MySQL The second in a series of two articles on encryption performance testing . In the first part , I specialize in MySQL The built-in right SSL With the support of Do a stress test , It produced some surprising results . AD:WOT2015 Internet operation and Development Conference Sell like hot cakes ...

  7. Learn from good examples UI You have to master these techniques

    from :http://blog.sina.com.cn/s/blog_15da22ed10102x0gx.html ui Design is now a star in the design industry , No matter in PC End . It's brilliant both on the mobile end and in the game . ...

  8. In line with language habits Python Elegant programming skills

    Python One of the biggest advantages is that the grammar is concise , Good code is like pseudo code , clean . Clean and tidy . Be clear at a glance . Write  Pythonic( elegant . Authentic . dapper ) Code , We need to read more and learn more from the code written by Daniel ,github There's a lot of very good stuff on the Internet ...

  9. Egret Learning notes (Egret hit a plane -7. Realize enemy aircraft factory )

    In the process of the game , The enemy planes are constantly flying down the top of the screen , If every one of our enemy planes were direct new Words , In the case of a lot of airplanes , Maybe there's a performance problem . It's like the pool of bullets in front , We also need to implement a pool of aircraft objects , That's the enemy aircraft factory in the title ( And ...

  10. Two inline-block The elements are not aligned up and down , There's a dislocation

    Abstract : Statement : This article is for reprint ( Click to view the original ), If there is any infringement 24 Delete in hours . contact QQ:1522025433. Problem description : Similar to <div class="ovh"> <h3 ...