【发布时间】:2011-01-29 11:19:44
【问题描述】:
我在 Windows 7 上运行 php 5.2.17 php 是通过命令行而不是在服务器上运行的。
我收到以下错误消息
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
所以我下载了 OpenSSL windows 二进制文件 http://www.slproweb.com/products/Win32OpenSSL.html
我下载了 Microsoft Visual C++ 2008 Redistributable Package (x86) http://www.microsoft.com/downloads/en/confirmation.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en
我在其他地方读到,我需要在我的 php.ini 文件中将 ;extension=php_openssl.dll 更改为 extension=php_openssl.dll,但我的 php 文件不包含
;extension=php_openssl.dll
在进行这些更改后,我尝试再次运行 php 文件,我得到了相同的错误消息。
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget
to enable it when you configured PHP?
非常感谢任何帮助!
【问题讨论】: