以前事!了!求助!
其跟APNS不大,就是需要使用stream_socket_client()取pem文件。
了APNS,照着做的:
http://zxs19861202.iteye.com/blog/1532460PHP部分在最下便。
IOS同已把生成好了的ck和aps_development的pem了我。
已看了一些方法:
http://stackoverflow.com/questions/809682/error-using-ssl-cert-with-php (路fix,不我用撒)
我的大:

<?php
$deviceToken = '啊啊啊啊啊啊啊';
// Put your private key's passphrase here:
$passphrase = '**************';
// Put your alert message here:
$message = 'My first push test!';
////////////////////////////////////////////////////////////////////////////////
$ctx = stream_context_create();
stream_context_set_option($ctx, 'ssl', 'local_cert', dirname(__FILE__) . '/' .'ck.pem');
/* stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck.pem'); */
stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);
限足!:
:
