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

RE: [PHP] Socket create with ssl server

2008-04-10 Thread Wolf
Top postinng due to sendng from my cell phone... I'd suggest you lookl at doing the ssl to the server ip address not the host name, and from reading your other note, it looks like ssl: isnlt needed, merely the name/ip of the server. HTH, Wolf -Original Message- From: Alan Willsher <[E

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 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 =