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
chmod 777 fifo

Try to execute it and execution never ends... browser is waiting for ever ...
No errors in error php error log.

Any ideas?

Jay Blanchard wrote:

[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 for
file operations. You can append to a file with the fopen() function...
http://www.php.net/fopen



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to