Hi ive been using this no problems
$sourceip = 'xx.xx.xx.xx'; //IP to bind
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_bind($sock, $sourceip);
socket_connect($sock, 'dac.nic.uk', 3043);
But I need to connect to ssl://epp.nominet.org.uk:700 and this fails as
it does not understa
I see reading the online docs that I'm supposed to go:
socket_create...
socket_bind...
socket_connect...
I've never used the bind function and it hasn't seemed to make any
difference? I've always just done socket_create() and then
socket_connect(). What benefit is there to putting a socket_bind
Thanks, changing the port worked.
-Josh
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 25, 2004 9:22 AM
> To: [EMAIL PROTECTED]
> Cc: PHP (E-mail)
> Subject: Re: [PHP] socket_bind
>
>
> I think all sockets le
D]>
Date: Friday, June 25, 2004 10:18 am
Subject: [PHP] socket_bind
> I'm trying to do socket_bind() and it works fine from the command
> line as
> root, but when I try to use it through apache I get this error
>
> Warning: socket_bind() unable to bind address [13]: Permissio
I'm trying to do socket_bind() and it works fine from the command line as
root, but when I try to use it through apache I get this error
Warning: socket_bind() unable to bind address [13]: Permission denied in
..
Is there a way to have this run through apache?
-Josh
--
PHP General Mailing
5 matches
Mail list logo