You are here: Re: [PHP] Write a FIFO file « PHP « IT news, forums, messages
Re: [PHP] Write a FIFO file

Posted by Ruben Rubio Rey on 12/20/05 14:38

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация