I have experimented myself the chore of detecting the exact version of CURL used by my PHP code. This is especially true in the case of choosy protocol version code.
Category Archives: PHP
A PHP command line to send Push Notifications
In my last post I showed how to write a simple PHP code to send iOS push notification using the HTTP2 protocol.
Continue reading A PHP command line to send Push Notifications
Sending Push Notification with HTTP2 (and PHP)
In order to send a push notification to an iOS device we must contact Apple servers and delegate them to do the work (go to this page to find more details on the entire process).
Some months ago Apple published a new protocol that we can use to contact its servers. The previous protocol (the one we used for years) had in fact some problems. In particular after sending a push, we had to wait at least 1 second for a (possible) Apple response. This is ok if we must send a limited number of pushes, but it is not acceptable when we need to send thousands of that (to send a push to 10.000 users we would wait almost 3 hours, spent almost entirely … waiting and idling!) .
Continue reading Sending Push Notification with HTTP2 (and PHP)