2011-01-29 3 views
1

Windows 7에서 PHP 5.2.17을 실행 중입니다. PHP가 서버가 아닌 명령 줄을 통해 실행 중입니다.php 스크립트를 실행할 때 경고 메시지 : file_get_contents() : 래퍼 "https"를 찾을 수 없습니다

나는 다음과 같은 오류 메시지가 표시되었다

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을 윈도우 바이너리를 http://www.slproweb.com/products/Win32OpenSSL.html

다운로드 그리고 난의 Microsoft Visual C를 다운로드 ++ 2008 재배포 가능 패키지 (x86) 내가 읽은 http://www.microsoft.com/downloads/en/confirmation.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

확장 할 필요가있는 다른 곳; extension = php_openssl.dll to extension = php_openssl.dll 내 php.ini 파일에 내 php 파일 넣기 do 포함하지 않는다

;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? 

대단히 감사합니다!

답변

0
+0

나중에 안녕하세요 저를 실행하고 다음과 같은 출력 C 가지고 : 자바 \ PHP는>의 PHP phptest.php 있는 OpenSSL \ 없음 HTTP 래퍼 : 예 HTTPS 래퍼 : 없음 래퍼 : 배열 (6) { [ 0] => 캐릭터 (3) "PHP" [1] => 스트링 (4) "파일" [2] => 스트링 (4) "데이터" [3] => 스트링 (4) "http" [4] => 문자열 (3) "ftp" [5] => 문자열 "(13)"compress.zlib " } – Peter

+0

OpenSSL이 활성화되어 있지 않으면 작동하지 않습니다. ypu가 php.ini에 extension = php_openssl.dll을 추가 했습니까? – jannej

+0

윈도우 7에서 실행중인 Wamp를 회신 해 주셔서 감사합니다. C : \ wamp \ bin \ apache \ Apache2.2.11 \ bin 디렉토리에있는 php.ini 파일을 편집했으며 C : \에 확장자에 대한 소스 디렉토리도 설정했습니다. wamp \ bin \ php \ php5.3.0 \ ext 그리고 openssl을 실행 한 후에도 여전히 활성화되지 않았습니까? – Peter

관련 문제