在PHP中启用SSL fsockopen() [英] Enable SSL in PHP fsockopen()

查看:1950
本文介绍了在PHP中启用SSL fsockopen()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用PHP fsockopen()在我的服务器和PayPal之间完成付款。但是,当我尝试使用SSL连接时,会收到以下错误:

 警告:fsockopen()[function.fsockopen] :无法连接到ssl://:443 
(无法找到套接字传输ssl - 您在配置PHP时是否忘记启用
?)

我确信我对fsockopen()方法的调用是正确的,因为它在我的开发服务器上升级PHP之前工作正常。 / p>

重要的是这个连接是加密的,所以我不能解决这个问题。



我在php.ini文件中找不到关于fsockopen()SSL连接的任何配置。



感谢您的帮助,

spryno724

解决方案

这意味着你的SSL模块没有编译PHP的其余部分,或者它是编译,但没有通过php.ini启用..



起点:看看什么phpinfo()说ssl?


I am using PHP fsockopen() to finalize a payment between my server and PayPal. However, when I try to use an SSL connection, I get this error:

Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://:443 
(Unable to find the socket transport "ssl" - did you forget to enable 
it when you configured PHP?)

I am sure that my call to the fsockopen() method is correct, as it worked correctly before I upgraded PHP on my development server.

It is important that this connection is encrypted, so I can't work around this.

I can't find any config about fsockopen() SSL connections in my php.ini file. Could anyone direct me to it?

Thank you for your help,
spryno724

解决方案

It means that either your SSL module wasn't compiled with the rest of the PHP or it was compiled but its not enabled via the php.ini ..

Starting point: see what phpinfo() says about ssl ?

这篇关于在PHP中启用SSL fsockopen()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆