XAMPP 和 file_get_contents("https://...") [英] XAMPP And file_get_contents("https://...")
本文介绍了XAMPP 和 file_get_contents("https://...")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试过在 xampp 上运行下一个代码:
I've tried running the next code on xampp :
$url2="https://....";
$content=file_get_contents($url2);
这就是我遇到的错误:
Warning: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:\xampp\htdocs\whoTalk\sys\user.php on line 38
我必须做什么才能获得 https://包装器的 url 内容?
What do I have to do in order to be able to get contents of a url which a https:// wrapper?
提前致谢
推荐答案
在您的 php.ini 中搜索以下内容:
In your php.ini search for the following:
extension=php_openssl.dll
如果它在那里并被评论,取消评论它.如果它不存在,请添加它:-)
If it is there and commented, uncomment it. If it is not there, add it :-)
这篇关于XAMPP 和 file_get_contents("https://...")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文