Re: Write a FIFO file
| From: | Ray Hauge | Date: | Tue, 20 Dec 2005 15:59:01 +0000 |
| Subject: | Re: Write a FIFO file | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227731@lists.php.net to get a copy of this message | ||
I'm not sure, but it could have something to do with append mode instead of write mode. All I know about FIFO files and named pipes is that you cannot open them for read and write, only one or the other. The file system could detect append as "reading" when it's positioning your pointer at the end of the file.
Robin Vickery wrote:
On 12/20/05, Ruben Rubio Rey <ruben@rentalia.com> wrote:Ok, I tried it before, it didn't work: [...] Try to execute it and execution never ends... browser is waiting for ever ... No errors in error php error log. Any ideas?I bet your script will finish as soon as you read from the other end - for example by doing 'cat fifo' from a shell. -robin