Когда я запускаю этот файл на моем локальном хосте Ubuntu, он не запускается. Но на других системах Ubuntu он работает. Я думаю, что некоторые библиотеки мне не хватает. Ребята, подскажите, пожалуйста, несколько конфигурационных библиотек.
<?php
date_default_timezone_set('Europe/Rome');
error_reporting(-1);
require_once 'ApnsPHP/Autoload.php';
$push =new ApnsPHP_Push(ApnsPHP_Abstract::ENVIRONMENT_SANDBOX,
'server_certificates_bundle_sandbox.pem');
$push->setRootCertificationAuthority('entrust_root_certification_authority.pem');
$push->connect();
$message = new ApnsPHP_Message('1e82db91c7ceddd72bf33d74ae052ac9c84a065b35148ac401388843106a7485');
$message->setCustomIdentifier("Message-Badge-3");
$message->setBadge(3);
$message->setText('Hello APNs-enabled device!');
$message->setSound();
$message->setCustomProperty('acme2', array('bang', 'whiz'));
$message->setCustomProperty('acme3', array('bing', 'bong'));
$message->setExpiry(30);
$push->add($message);
$push->send();
$push->disconnect();
$aErrorQueue = $push->getErrors();
if (!empty($aErrorQueue))
{
var_dump($aErrorQueue);
}
?>