你能向我解释一下这个关于 https 的 php 警告吗
当我尝试使用 PHP 脚本从 gitub 访问文件时,我收到以下警告:
警告:DOMDocument::load() [domdocument.load]: 无法找到包装器“https” - 您是否忘记启用它 配置PHP? 在 C:\xampp\htdocs\plaoul\text\gittest.php 第 13 行`
你能解释一下什么是“包装器”,需要配置什么,以及一般发生了什么?
I received the following warning, when I tried to access a file from gitub in PHP script:
Warning: DOMDocument::load() [domdocument.load]:
Unable to find the wrapper "https" - did you forget to enable it when you
configured PHP?
in C:\xampp\htdocs\plaoul\text\gittest.php on line 13`
Can you explain what "wrapper" is, what needs to be configured, and generally what's happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
取消
php.ini
中php_openssl.dll
扩展的注释,然后重新启动 apache。在 xampp 的某些添加中,此行丢失,必须手动插入!
Uncomment
php_openssl.dll
extension in thephp.ini
then restart apache.In some additions of xampp this line is missing and has to manually inserted!
包装器是用于通过各种协议(在本例中为 HTTPS)访问数据流的类。请阅读此处:http://www.php.net/manual/en/intro。 Stream.php
您需要 HTTP/HTTPS 包装器: http://www.php.net/manual/en/wrappers.http.php,加上使用 SSL 支持构建的 PHP。
php -m |grep openssl 是否返回任何内容?
Wrappers are classes made to access data streams through various protocols, in this case, HTTPS. Read here: http://www.php.net/manual/en/intro.stream.php
You need the HTTP/HTTPS wrapper: http://www.php.net/manual/en/wrappers.http.php, plus PHP built with SSL support.
Does
php -m |grep openssl
return anything?