I'm trying to use this function to outpot the content of a file that I change 
time to time so I'd like to see the added text into file to appear in the 
browser window.

Could you help me? (stream_select doesn't work???)

<?

$fh = fopen('debug.txt','r+');
stream_set_blocking($fh ,true);
while(true){  
  $text = fgets($fh,10);
  echo $text;

  flush();
  ob_flush();

}
fclose($fh);
?>

Thanks.

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

Reply via email to