当前位置: 动力学知识库 > 问答 > 编程问答 >

dom - can you explain to me this php warning about https

问题描述:

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?

网友答案:

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?

网友答案:

Uncomment php_openssl.dll extension in the php.ini then restart apache.

In some additions of xampp this line is missing and has to manually inserted!

extension=php_openssl.dll
分享给朋友:
您可能感兴趣的文章:
随机阅读: