First of all I want to say that 000webhost is great, you guys give us so much for free, and by using your services I’ve learnt alot about php, sql etc. I understand you can’t give us everything for free, so I just want to check if upgrading to a paid account will allow for ssl:// outgoing connections.
Specifically I want to do iphone push notifications, and these require an ssl connection to apple’s servers. I have a .pem certificate to use. Something like the following php code:
$streamContext = stream_context_create();
stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert);
$apns = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext);
At the moment I get the error - Unable to find the socket transport “ssl”
Fair enough, ssl is not enabled on the free servers, and I see that paid hosting does have ssl, but I just want to check if it will allow code like this.