使用PHP for iPhone APNS时出错 [英] Error Using PHP for iPhone APNS

查看:107
本文介绍了使用PHP for iPhone APNS时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从用于向APNS发送消息的PHP代码中收到此错误消息...是否有人遇到过同样的问题?

I have been getting this error messages from my PHP code used to send message to the APNS...has anyone got faced the same issue?

Warning: stream_socket_client() [function.stream-socket-client]: SSL operation 
failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:
SSL3_READ_BYTES:sslv3 alert handshake failure in 
/Library/WebServer/Documents/anish/apns/2.php on line 8

Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable 
crypto in /Library/WebServer/Documents/anish/apns/2.php on line 8

Warning: stream_socket_client() [function.stream-socket-client]: unable to connect 
to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /Library/WebServer
/Documents/anish/apns/2.php on line 8
Failed to connect: 0

Warning: fclose(): supplied argument is not a valid stream resource in   
/Library/WebServer/Documents/anish/apns/2.php on line 20*

此外,似乎总是无法连接到gateway.sandbox.push.apple.com。我甚至尝试使用PushMeBaby,它也无法连接到gateway.sandbox.push.apple.com

Also it seems it always fails to connect to gateway.sandbox.push.apple.com. I even tried with PushMeBaby and it too fails to connect to gateway.sandbox.push.apple.com

推荐答案

问题显然是随着证书的安装。如果证书安装正确,那么一切都很有魅力......!

the problem apparently was with the installation of certificates. If the certificate are installed properly, then everything works great like a charm..!

这篇关于使用PHP for iPhone APNS时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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