Free Web Hosting Forum
(#1)
Old
Mizonnz Mizonnz is offline
Junior Member
Mizonnz is on a distinguished road
 
Posts: 1
Join Date: Mar 2011
Default SSL outgoing connections - 03-16-2011, 09:49 PM

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.
Reply With Quote
(#2)
Old
chanh's Avatar
chanh chanh is offline
Administrator
chanh is on a distinguished road
 
Posts: 2,064
Join Date: Dec 2008
Default 03-17-2011, 02:11 AM

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com