Re: [PHP] Socket Functions in PHP

2006-05-08 Thread Richard Lynch
On Sun, May 7, 2006 11:22 pm, Oliver John V. Tibi wrote: > while ($data != "") { > $document .= $data; > $data = socket_read( $resource, 1024 ); $logman->append("Read " . strlen($data) . " bytes"); > } This is going to help

Re: [PHP] Socket functions

2005-08-30 Thread Philippe Reynolds
WOW...so much simpler..thank you very much!! Cheers Phil style='FONT-SIZE:11px;FONT-FAMILY:tahoma,sans-serif'>size=1> From: Burhan Khalid <[EMAIL PROTECTED]>To: Philippe Reynolds <[EMAIL PROTECTED]>CC: php-general@lists.php.netSubject: Re: [PHP] Socket functionsDate: Tue, 30 Aug 2005 09:

Re: [PHP] Socket functions

2005-08-29 Thread Burhan Khalid
Philippe Reynolds wrote: Greetings, When I do an ifconfig in unix, I see the the IP address for the my ethernet. It follows something called inet. Would anyone know who to manipulate the socket functions to be able to extract the inet IP address fromt the eth0 section?? -- PHP General M

Re: [PHP] socket functions

2001-04-04 Thread Joseph Blythe
Yasuo Ohgaki wrote: > Did you read the Manual? The manual is my bible I always read it before I post. Also searched google and the list archives. > socket_set_blocking As far as I can tell this does not work for the new socket functions, the file descriptor does not seem to be compatible? (i

Re: [PHP] socket functions

2001-04-04 Thread Yasuo Ohgaki
Did you read the Manual? >From PHP Manual = socket_set_blocking Description int socket_set_blocking (int socket descriptor, int mode) If mode is false, the given socket descriptor will be switched to non-blocking mode, and if true, it will be switched to blocking mode. This affects call

Re: [PHP] socket functions

2001-04-03 Thread Joseph Blythe
Joseph Blythe wrote: > hello, > > does anyone know if set_nonblock() works, what paramaters it takes > and what it returns? > > there is only one mention of it in the manual under accept_connect, > and I can not seem to set the socket to non block?? > > also has anybody successfully wri