对于IOS APNS,我尝试连接
$fp = stream_socket_client(
'ssl://gateway.sandbox.push.apple.com:2195', $err,
$errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx);
but $fp show blank .how to resolve
答案 0 :(得分:0)
我知道有些晚了,但是处理$fp
的响应和打印可能会为您提供更多详细信息。
if ($this->fp) {
echo 'Successfully connected to server of APNS';
} else {
echo "Failed to connect: $err $errstr" . PHP_EOL;
}