Socket create with ssl server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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://

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux