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

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. 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 to"tail -f" in php but I'm running into a problem. The

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. 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 to"tail -f" in php but I'm >>> running into a problem. >>> The issue occurs when I'v

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 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 ne

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

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 & apach