Error Using PHP for iPhone APNS


Error Using PHP for iPhone APNS



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* 

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


MVC and the communication between them. What did i miss?

1:

Accessing GPS on Blackberry using Javascript and sending lat/long values to a server via url
the problem apparently was with the installation of certificates. What is something you wish you had known sooner about the iPhone SDK?If the certificate are installed properly, then everything works great like a charm..!. How do I center a UIImageView within a full-screen UIScrollView?
SSLHandshakeException unknown_ca apns java

74 out of 100 based on 39 user ratings 834 reviews