Socket create with ssl server

From: Date: Thu, 10 Apr 2008 21:20:56 +0000
Subject: Socket create with ssl server
Groups: php.general 
Request: Send a blank email to php-general+get-272849@lists.php.net to get a copy of this message
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 (#272849) next »