PHP Warning: copy(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Command line code on line 1 code example

Example: file could not be downloaded: Unable to find the wrap per "https" - did you forget to enable it when you configured PHP? failed to open stream: No such file or directory

solved it in XAMPP by uncommenting ;extension=php_openssl.dll in 
/apache/bin/php.ini despite 
phpinfo() telling me /php/php.ini 
was the loaded ini file.
  
And You just uncomment the extension_dir in php.ini

Tags:

Php Example