469,926 Members | 2,027 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

Help with Fatal error: fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

Hi all i have used a script that i downloaded and uses the
fopen($url,'r'); function to access a url to retrieve data and i get
this error

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

i checked the 'allow_url_fopen = On' in php.ini and it is set to On,
and still it didn't work

Any ideas plz??

Thank you

Mar 28 '06 #1
5 42843
You have to use PHP 4.3 + and have OpenSSL .

Mar 28 '06 #2
what do u mean by having OpenSSL ( i understand the term but how do i
do it)??

Mar 28 '06 #3
change the line
;extension=php_openssl.dll to extension=php_openssl.dll
in php.ini file.
simply remove ";" char.

if it wont work. you can create ssl:// connection with fsockopen()
function then you can use fopen().

Mar 28 '06 #4
i tried the fsockopen() but i got this :
Fatal error: fsockopen(): php_network_getaddresses: gethostbyname
?????

any suggestions??

Mar 28 '06 #5
Please quote previous replies when replying with your own comments.
There is no guarantee that your answer, below, will stay in context with
the original posting(s).

Meena wrote:
i tried the fsockopen() but i got this :
Fatal error: fsockopen(): php_network_getaddresses: gethostbyname
?????

Looks like either a lookup problem or potentially a known bug in earlier
versions of PHP. If using the IP address of the host fails in the same
manner, see if you can capture the full failure, and compare with
similar reports on bugs.php.net.

Google for "php_network_getaddresses".
Mar 28 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by gc | last post: by
4 posts views Thread by Rafal Zawadzki | last post: by
1 post views Thread by Adam Teasdale Hartshorne | last post: by
4 posts views Thread by hb | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.