Ssl 运行php脚本时出现未解析的警告消息:file_get_contents():找不到包装器“https”

Ssl 运行php脚本时出现未解析的警告消息:file_get_contents():找不到包装器“https”,ssl,openssl,fopen,php,Ssl,Openssl,Fopen,Php,我在Windows7上运行PHP5.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

我在Windows7上运行PHP5.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二进制文件

<>我下载了微软Visual C++ 2008可重新分配包x86

我在别处读到我需要改变的东西;extension=php\u openssl.dll到extension=php\u openssl.dll在我的php.ini文件中放入我的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?
非常感谢您的帮助

你试过这个吗?

Hi ya我运行了它并得到了以下输出C:\java\php>php phptest.php openssl:no http包装器:yes https包装器:no包装器:array6{[0]=>string3 php[1]=>string4文件[2]=>string4数据[3]=>string4 http[4]=>string3 ftp[5]=>string13 compress.zlib}只要您没有启用OpenSSL,它就不会工作。ypu是否将extension=php\u openssl.dll添加到php.ini?感谢您回复我在windows 7上运行wamp,我已经像您所说的那样在C:\wamp\bin\apache\Apache2.2.11\bin目录中编辑了php.ini,并且还将扩展的源目录设置为C:\wamp\bin\php\php5.3.0\ext,并且在执行openssl之后仍然没有启用?下面的链接似乎是这样的承诺在wamp中设置openssl,我希望这些步骤能够奏效