title: iOS push notification does not work when using crontab scheduler
body: <p>I have implemented a sample push notification service for my App. </p>
  
  <p>Right now I test in a sandbox environment.</p>
  
  <p>I get notifications when I manually call the PHP script to push notifications through APN.</p>
  
  <p>When I write a scheduler using <strong>crontab</strong> to automate the delivery of notifications I dont get the notifications. The error I get as a mail is:</p>
  
  <pre><code>PHP Warning:  stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
  error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure in /Users/aspire/Desktop/SimplePush/simplepush.php on line 21
  PHP Warning:  stream_socket_client(): Failed to enable crypto in /Users/aspire/Desktop/SimplePush/simplepush.php on line 21
  PHP Warning:  stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /Users/aspire/Desktop/SimplePush/simplepush.php on line 21
  Failed to connect: 0 
  </code></pre>
  
  <p>Can someone explain what the problem could be?</p>