An error occurred when using file_get_contents when doing the mobile phone number query function:
<code>Warning: file_get_contents(): Unable <span>to</span> find <span>the</span> wrapper <span>"https"</span> - did you forget <span>to</span> enable <span>it</span> when you configured PHP?</code>
There are 3 solutions to this error:
- 1. For PHP under windows, you only need to go to php.ini and set extension=php_openssl.dll in front of it. ;Delete it and restart the service.
- 2. For PHP under Linux, you must install the openssl module. After installation, you can access it.
- 3. If you cannot modify the configuration of the server, then use the curl function to replace the file_get_contents function. Of course, it is not a simple replacement. There are also corresponding parameter configurations to use the curl function normally.
').addClass('pre-numbering').hide();
$(this).addClass('has-numbering').parent().append($numbering);
for (i = 1; i ').text(i));
};
$numbering.fadeIn(1700);
});
});
The above introduces the solution to the Unable to find the wrapper "https" error, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn