In PHP, how do you use fread() to check if there is an error response when sending enhanced push notifications?
I have read the Apple docs, a couple vague posts thru
Am not sure the content of you code but you should try ApnsPHP it is well tested works perfectly fine and it able to handle all possible exception and error for you.
Other Alternatives
https://github.com/sebastianborggrewe/PHP-Apple-Push-Notification-Server https://github.com/bortuzar/PHP-Mysql---Apple-Push-Notification-Server
Have tested 2 out of the 3 i examples and did not have issue of implementation and error management.
Thanks
:)