Re: Write a FIFO file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux