Re: [PHP] feof Question

2004-05-09 Thread Curt Zirzow
* Thus wrote Harish ([EMAIL PROTECTED]): > > Hi > > I am using Linux, Apache, MySql, PHP. In the below mentioned code example when the > counter data that is displayed on the screen going to a indefinite loop. The file > that is read has got sufficient permissions.

Re: [PHP] feof Question

2004-05-09 Thread Petr U.
On Sun, 9 May 2004 22:00:53 +0530 "Harish" <[EMAIL PROTECTED]> wrote: > $fp = fopen( 't.txt', 'r' ); > > while( !feof( $fp ) ) > { >print fgets( $fp ); >echo $counterval++; >if($counterval%100==0) >{ > flush(); >} > } > fclose( $fp ); > ?> Modify