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

[PHP] Socket Functions in PHP

2006-05-07 Thread Oliver John V. Tibi
Hi all, I suspect I'm having problems with socket functions within my PHP application running on Red Hat 2.4.21-4.EL #1/PHP 4.3.2/Apache 2.0.46. Below is a sample code listing: function sendRequest($strRequest) { $parse

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

[PHP] Socket functions

2005-08-29 Thread Philippe Reynolds
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?? Cheers Phil -- PHP General Mailing List (ht

[PHP] socket functions and singnals

2002-03-24 Thread Michael Govorun
Socket functions, such as socket_read(), socket_accept() blocking signal handling in php-processes. Is it bug? Is there any way to use signals and socket_accept() together? Please, help! -- Michael Govorun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] Socket functions

2001-12-19 Thread David
Hi, just wondering if anyone have tried the socket functions in php http://www.php.net/manual/en/ref.sockets.php does it work on win32(apache)? i tried the simple TCP/IP example on that page but it does\'nt work for me. I\'m using 4.1.0 and enabled that entension already. -- PHP General Mail

[PHP] Socket functions

2001-05-10 Thread Peter Sorger
Hello, I cannot make the Example 1 (Socket example: Simple TCP/IP server) from the sockets php manual page (http://www.php.net/manual/en/ref.sockets.php) work :( It always closes the connection after one line passed throug the server script :( I'm running it on 4.0.3pl1 CGI version. Am I doing

[PHP] Flash XMLSocket object and the PHP socket functions

2001-04-09 Thread Frank Joerdens
I am currently thinking about how to implement a realtime chat using the XMLSocket functionality in Macromedia Flash 5 using the PHP socket functions. Here's a quote from the Flash 5 online help: --- begin quote --- Using the XMLSocket object To us

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

[PHP] socket functions

2001-04-02 Thread Joseph Blythe
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 written a way to time out a read with the new

[PHP] socket-functions

2001-01-14 Thread Christoph Aigner
hello, is it possible to use the socket-functions within a windows-environment, or are they for linux-distributions only ...? regards christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To co