я проверил свой сервер с помощью telnet, похоже, что он работает нормально:
telnet gateway.sandbox.push.apple.com 2195
Trying 17.149.34.142...
Connected to gateway.sandbox.push-apple.com.akadns.net.
Escape character is '^]'.
но я пытаюсь запустить файл sample_push.php в PHP-APNS, но он показывает ошибку ниже:
Sat, 30 Apr 2011 18:21:13 +0800 ApnsPHP[14447]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Sat, 30 Apr 2011 18:21:13 +0800 ApnsPHP[14447]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Sat, 30 Apr 2011 18:21:13 +0800 ApnsPHP[14447]: INFO: Retry to connect (1/3)...
Sat, 30 Apr 2011 18:21:14 +0800 ApnsPHP[14447]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Sat, 30 Apr 2011 18:21:14 +0800 ApnsPHP[14447]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Sat, 30 Apr 2011 18:21:14 +0800 ApnsPHP[14447]: INFO: Retry to connect (2/3)...
Sat, 30 Apr 2011 18:21:15 +0800 ApnsPHP[14447]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Sat, 30 Apr 2011 18:21:15 +0800 ApnsPHP[14447]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Sat, 30 Apr 2011 18:21:15 +0800 ApnsPHP[14447]: INFO: Retry to connect (3/3)...
Sat, 30 Apr 2011 18:21:16 +0800 ApnsPHP[14447]: 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'.................
есть идеи?