Re: feof problem php3.x

From: Date: Wed, 11 Oct 2000 16:56:47 +0000
Subject: Re: feof problem php3.x
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-19669@lists.php.net to get a copy of this message
Ken: > while (!feof($a)){ > ... snip ... > lastfilename.txt\r\n as the last entry, it tries to go thru the loop one > more time. Have you tried: while ( $Line = fgets($Pointer,500) ) { # stuff to do ... } Always works for me --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y More than just answers. Solutions. (SM) http://www.analysisandsolutions.com/ 4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#19669) next »