Re: N/A
| From: | Marco Tabini | Date: | Mon, 20 Oct 2003 14:18:07 +0000 |
| Subject: | Re: N/A | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166753@lists.php.net to get a copy of this message | ||
Hey Peter--
If the file is always local and you're using a relatively recent version of PHP, you can use file_get_contents instead:
http://ca.php.net/file_get_contents
Cheers,
Marco
--
php|architect -- The magazine for PHP professionals
Try us free at http://www.phparch.com
Searchable PHP Mailing Archive at http://phparch.com/mailinglists
Peter Flachbart wrote:
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.