RE: [PHP] Socket create with ssl server

From: Date: Fri, 11 Apr 2008 05:21:14 +0000
Subject: RE: [PHP] Socket create with ssl server
Groups: php.general 
Request: Send a blank email to php-general+get-272863@lists.php.net to get a copy of this message
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 <al.willsher@googlemail.com> 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); socket_connect($sock, 'server.com', 2043); but if I do $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($sock, $sourceip); socket_connect($sock, 'ssl://server.com', 2043); I get Warning: socket_connect(): Host lookup failed [-10001]: Unknown host Where do I need to add the ssl://

« previous php.general (#272863) next »