Ok, I tried it before, it didn't work:
For example,
?php
$filename = fifo ;
$dataFile = fopen( $filename, a ) ;
if ( $dataFile )
{
fwrite($dataFile,TEST IN FIFO FILE\n);
fclose($dataFile);
}
else
{
die( fopen failed for $filename ) ;
}
?
fifo file created as root:
mkfifo fifo
On 12/20/05, Ruben Rubio Rey [EMAIL PROTECTED] 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
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
On 12/20/05, Ruben Rubio Rey [EMAIL PROTECTED] wrote:
Robin Vickery wrote:
I bet your script will finish as soon as you read from the other end -
for example by doing 'cat fifo' from a shell.
Thats it.
I would like to use fifo, but thats a problem. If there is not process
reading, it wont
Hi,
I have a problem. I have created a fifo file (under linux) and I m not
able to append some line from a php script. There is not output error,
php just is executing for ever ...
How can I write a fifo file?
Thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
I have a problem. I have created a fifo file (under linux) and I m not
able to append some line from a php script. There is not output error,
php just is executing for ever ...
How can I write a fifo file?
[/snip]
Please have a look here; http://www.php.net/file as a starting point
6 matches
Mail list logo