Re: [PHP] Socket create with ssl server

2008-04-18 Thread Alan Willsher
Is it possible to do this with CURL instead of the socket functions $bindip = 'xx.xx.xx.xx'; $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($sock, $bindip); socket_connect($sock, 'ssl://epp.server.com', 80); ie bind an IP and connect to an ssl:// address Trying to connect via

[PHP] Socket create with ssl server

2008-04-10 Thread Alan Willsher
Hi how do you use socket_create with an ssl server ie I would do something like $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($sock, $sourceip); socket_connect($sock, 'server.com', 2043); but if I do $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($sock,

Re: [PHP] Socket create with ssl server

2008-04-10 Thread Nirmalya Lahiri
--- Alan Willsher [EMAIL PROTECTED] wrote: Hi how do you use socket_create with an ssl server ie I would do something like $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($sock, $sourceip); socket_connect($sock, 'server.com', 2043); but if I do $sock =

Re: [PHP] Socket create with ssl server

2008-04-10 Thread Greg Bowser
The sockets extension is a much lower level interface to sockets than the fsockets/stream_ functions in PHP. Unlike with the aforementioned, with the sockets extension, you can't just expect to magically get an ssl connection by using ssl://. Your problem is that the sockets extension has no

RE: [PHP] Socket create with ssl server

2008-04-10 Thread Wolf
[EMAIL PROTECTED] Sent: Thursday, April 10, 2008 5:20 PM To: php-general@lists.php.net Subject: [PHP] Socket create with ssl server Hi how do you use socket_create with an ssl server ie I would do something like $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($sock, $sourceip