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
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,
--- 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 =
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
[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
5 matches
Mail list logo