unresolved warning message when running php script

2019-08-13 07:27发布

I am running php 5.2.17 on windows 7 php is running through the command line and not on a server.

I was getting the following error message

C:\java\newsweaver-api-v2\simple>php list-tags.php

Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget
 to enable it when you configured PHP? in C:\java\newsweaver-api-v2\simple\list-
tags.php on line 30

so I downloaded OpenSSL windows binaries http://www.slproweb.com/products/Win32OpenSSL.html

And I downloaded Microsoft Visual C++ 2008 Redistributable Package (x86) http://www.microsoft.com/downloads/en/confirmation.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

I read elsewhere that I needed to change ;extension=php_openssl.dll to extension=php_openssl.dll in my php.ini file put my php file does not contain

;extension=php_openssl.dll

I tried running the php file again after making these changes and I am getting the same error msg.

Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget
to enable it when you configured PHP?

Any help greatly appreciated!

1条回答
登录 后发表回答