Free Web Hosting Forum

Free Web Hosting Forum (http://www.000webhost.com/forum/index.php)
-   Customer Assistance (http://www.000webhost.com/forum/forumdisplay.php?f=6)
-   -   SSL outgoing connections (http://www.000webhost.com/forum/showthread.php?t=23099)

Mizonnz 03-16-2011 09:49 PM

SSL outgoing connections
 
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:

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.

chanh 03-17-2011 02:11 AM

please check with hosting24.com to get your paid hosting question answer. This forum is only for 000webhost.


All times are GMT. The time now is 11:59 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.