Re: fgets bug?

From: Date: Mon, 21 Aug 2000 08:08:17 +0000
Subject: Re: fgets bug?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12730@lists.php.net to get a copy of this message
On Mon, 21 Aug 2000, moshe wrote: > when i'm using this subroutine: > > while(!feof($f)){ >    $line = fgets($f,4096); >    $string = $string .$line; >  } > > or: > > while($line = fgets($f,4096)){ >       $string = $string .$line; >  } > > times that the remote server doesnt return eof and the fgets wait > forever to response. but when i'm using the fpassthru its read the file > well. Might be Mac documents. > does any1 know function like the fpassthru that return me the page (not > sending it into the screen? fread - Sascha

« previous php.general (#12730) next »