title: How to use Apple Push Notifications if you can't use port 2195?
body: <p>I have developed a script using <code>stream_socket_client()</code> and it works on my localhost but when I try to use it online (with <strong>Fatcow.com</strong> web hosting) it won't work. I receive the following error:</p>
  
  <blockquote>
    <p><strong>Warning:</strong> stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195
    (Connection refused) in <strong>.../send-notification.php</strong> on line <strong>18</strong>
    Failed to connect 111 Connection refused</p>
  </blockquote>
  
  <p>This is line 18:</p>
  
  <p><code>$fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx);</code></p>
  
  <p>I know that the password for the .pem file is correct. The question becomes if I can't use this port what do I do? Is there any free service that I can use? I know that port 80 is open. </p>
  
  <p>I've heard that using the <code>curl()</code> function will work but have been unsuccessful so far.</p>
  
  <p>I would really appreciate getting pointed in the right direction.</p>