Re: [PHP] stream_select() not working on regular files?

2010-02-04 Thread Dennis J.
On 02/04/2010 06:18 AM, Eric Lee wrote: On Thu, Feb 4, 2010 at 9:20 AM, Dennis J.denni...@conversis.de wrote: On 02/04/2010 02:03 AM, Ashley Sheridan wrote: On Thu, 2010-02-04 at 01:41 +0100, Dennis J. wrote: Hi, I'm trying to implement something similar totail -f in php but I'm running

Re: [PHP] stream_select() not working on regular files?

2010-02-04 Thread Nathan Rixham
Dennis J. wrote: The issue is that once I've hit the EOF I need to continue the loop using the stream_select() waiting for new data. AFAIK you can't; you see stream_select checks to see if something will be blocked; if EOF is reached it considers this as not blocked; in other words the second

[PHP] stream_select() not working on regular files?

2010-02-03 Thread Dennis J.
Hi, I'm trying to implement something similar to tail -f in php but I'm running into a problem. The issue occurs when I've reached the end of the file. From here I basically have to loop until new lines get appended to the file but I would like to respond immediately when then happens. There

Re: [PHP] stream_select() not working on regular files?

2010-02-03 Thread Ashley Sheridan
On Thu, 2010-02-04 at 01:41 +0100, Dennis J. wrote: Hi, I'm trying to implement something similar to tail -f in php but I'm running into a problem. The issue occurs when I've reached the end of the file. From here I basically have to loop until new lines get appended to the file but I

Re: [PHP] stream_select() not working on regular files?

2010-02-03 Thread Dennis J.
On 02/04/2010 02:03 AM, Ashley Sheridan wrote: On Thu, 2010-02-04 at 01:41 +0100, Dennis J. wrote: Hi, I'm trying to implement something similar totail -f in php but I'm running into a problem. The issue occurs when I've reached the end of the file. From here I basically have to loop until new

Re: [PHP] stream_select() not working on regular files?

2010-02-03 Thread Eric Lee
On Thu, Feb 4, 2010 at 9:20 AM, Dennis J. denni...@conversis.de wrote: On 02/04/2010 02:03 AM, Ashley Sheridan wrote: On Thu, 2010-02-04 at 01:41 +0100, Dennis J. wrote: Hi, I'm trying to implement something similar totail -f in php but I'm running into a problem. The issue occurs when

Re: [PHP] stream_select

2008-08-24 Thread Jochem Maas
Damien Churchill schreef: Is there a known issue with using stream_select with apache2 mod_php? I have a script (http://php.pastebin.com/m601965d) that when run with mod_php doesn't work, but when run with php-cgi from the command line works fine. define doesn't work. what exact php apache

[PHP] stream_select

2008-08-22 Thread Damien Churchill
Is there a known issue with using stream_select with apache2 mod_php? I have a script (http://php.pastebin.com/m601965d) that when run with mod_php doesn't work, but when run with php-cgi from the command line works fine. Thanks in advance, Damien

[PHP] stream_select problem with signals

2008-02-15 Thread Marcos Lois Bermúdez
I'm rewriting an API to access OneWire Net, i have a problem with select and signals. The class will support both types of sockets, trought BSD sockets and with streams. My problem is that when the PHP app is in socket select and a signal arrives it threat it as a error, so i can fix in