Send Apple Push Notifications via PHP (curl)
问题 Tell me how to send a message by means of a push on the CURL php? This commitment does not work: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'https://gateway.push.apple.com:2195'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json")); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_SSLCERT,'1.pem'); curl_setopt($ch, CURLOPT