note 36728 added to function.stream-set-blocking

From: Date: Mon, 20 Oct 2003 14:02:45 +0000
Subject: note 36728 added to function.stream-set-blocking
Groups: php.notes 
Request: Send a blank email to php-notes+get-58942@lists.php.net to get a copy of this message
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 somebody 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); ?> ---- Manual Page -- http://www.php.net/manual/en/function.stream-set-blocking.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36728 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36728&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36728&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58942) next »