Re: feof Question

From: Date: Sun, 09 May 2004 16:48:01 +0000
Subject: Re: feof Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-185753@lists.php.net to get a copy of this message
On Sun, 9 May 2004 22:00:53 +0530 "Harish" <harish@cbayscribe.com> wrote: > <?php > $fp = fopen( 't.txt', 'r' ); > > while( !feof( $fp ) ) > { > print fgets( $fp ); > echo $counterval++; > if($counterval%100==0) > { > flush(); > } > } > fclose( $fp ); > ?> Modify your code like this and send it's output.. /* or ini_set('error_reporting', E_ALL); if your version * of php don't know error_reporting() */ error_reporting(E_ALL); $fp = fopen('t.txt', 'r'); if (! $fp) { die('Some error here!'); } -- Petr U.

« previous php.general (#185753) next »