Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there an HTTP server which can serve files being written/appended to by some other process? I tried to serve a FIFO file with Apache but such files has zero size so Apache serves empty file even if the FIFO has some data in it.

share|improve this question
up vote 1 down vote accepted

This has a helpful example:

Uses php to parse the fifo and shunts it to browser... then ajax to refresh

  $fp = fopen("ajaxfifo", "r");
  if ($fp) {
    $ajaxstring = fgets($fp, 128);

  header("Content-Type: text/html");

If you are wanting to have several/many users accessing, you will need some form of fanout, like his previous page.. handy!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.