file_get_contents () Get HTTPS this error unable to find the wrapper "https" –did
Workaround one, if you are using the server, you can refer to this method, modify the PHP configuration file (win host) to support HTTPS
Find and modify in php.ini
Extension=php_openssl. DLL = On
Restart the service can be, if you are Linux server,Linux under the PHP, you must install the OpenSSL module, installed in the future can be visited.
Workaround two, if you are not using the server, you use the host, you cannot change the configuration of PHP, you can use the Curl function to replace the file_get_contents function, of course your host must support the Curl function.
<?PHPfunctionGetsslpage ($url) {$ch=curl_init (); curl_setopt ($ch, Curlopt_ssl_verifypeer,FALSE); curl_setopt ($ch, Curlopt_header,false); curl_setopt ($ch, Curlopt_followlocation,true); curl_setopt ($ch, Curlopt_url,$url); curl_setopt ($ch, Curlopt_referer,$url); curl_setopt ($ch, Curlopt_returntransfer,TRUE);$result= Curl_exec ($ch); Curl_close ($ch);return $result;}EchoGetsslpage ($_get[' URL ']);?>
file_get_contents () Get HTTPS this error unable to find the wrapper "https" –did