Php XAMPP和文件“获取”内容;https://...")
我已尝试在xampp上运行下一个代码:Php XAMPP和文件“获取”内容;https://..."),php,xampp,Php,Xampp,我已尝试在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\ht
$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的内容
提前感谢您需要在XAMPP中启用OpenSSL扩展以从安全服务器获取任何内容。在PHP.ini中搜索以下内容:
extension=php\u openssl.dll
如果它已存在并已注释,请取消注释。如果它不在那里,请在WAMP I added中添加它:-)
allow_url_include = On
extension=php_openssl.dll
extension=php_curl.dll
我能找到的所有3个php.ini文件,即
\wamp\bin\php\php5.4.12\php.ini
\wamp\bin\php\php5.4.12\phpForApache.ini
\wamp\bin\apache\Apache2.4.4\bin\php.ini
我不知道实际需要哪个.ini文件中的特定设置,但现在接受https…我已经添加了此设置,但仍然收到此错误。。。我是否必须以某种方式刷新xampp设置?您需要重新启动Apache