0
votes

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?

2

2 Answers

1
votes

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?

3
votes

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