Unable to find the wrapper "https" error resolution

Source: Internet
Author: User

PHP.ini The default configuration, the link to the HTTPS is read with file_get_contents, the error is as follows:
Warning:fopen () [function.fopen]: Unable to find the wrapper "https"-do you forget to enable it when you configured PH P?

This error is divided into 3 different solutions:
1.windows PHP, only need to php.ini in front of the Extension=php_openssl.dll, delete, restart the service can be.

2.linux PHP, you must install the OpenSSL module, installed in the future can be accessed.

3. If the server you can not modify the configuration, then use the Curl function to replace the file_get_contents function, of course, is not a simple replacement ah. There is also a corresponding parameter configuration to use the Curl function properly.

Reproduced in original: http://tanning555.blog.163.com/blog/static/5297517120138791953104/

Unable to find the wrapper "https" error resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.