连接时出现apns-php错误

时间:2011-04-20 11:20:23

标签: php ios apple-push-notifications

请有人帮助我。连接到apns服务器时出现此错误。反馈工作正常。它返回了我的数据。

Wed, 20 Apr 2011 13:14:36 +0200 ApnsPHP[30954]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 20 Apr 2011 13:14:36 +0200 ApnsPHP[30954]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Wed, 20 Apr 2011 13:14:36 +0200 ApnsPHP[30954]: INFO: Retry to connect (1/3)...
Wed, 20 Apr 2011 13:14:37 +0200 ApnsPHP[30954]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 20 Apr 2011 13:14:38 +0200 ApnsPHP[30954]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Wed, 20 Apr 2011 13:14:38 +0200 ApnsPHP[30954]: INFO: Retry to connect (2/3)...
Wed, 20 Apr 2011 13:14:39 +0200 ApnsPHP[30954]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 20 Apr 2011 13:14:39 +0200 ApnsPHP[30954]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Wed, 20 Apr 2011 13:14:39 +0200 ApnsPHP[30954]: INFO: Retry to connect (3/3)...
Wed, 20 Apr 2011 13:14:40 +0200 ApnsPHP[30954]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Fatal error: Uncaught exception 'ApnsPHP_Exception' with message 'Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)' in /home/flavius/public_html/apns-php/ApnsPHP/Abstract.php:352
Stack trace: 
    #0 /home/flavius/public_html/apns-php/ApnsPHP/Abstract.php(295): ApnsPHP_Abstract->_connect() 
    #1 /home/flavius/public_html/apns-php/sample_push_many.php(44): ApnsPHP_Abstract->connect()
    #2 {main} thrown in /home/flavius/public_html/apns-php/ApnsPHP/Abstract.php on line 352

请有人帮助我。谢谢。

0 个答案:

没有答案