Re: fread()

From: Date: Thu, 09 Dec 2004 20:30:37 +0000
Subject: Re: fread()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203862@lists.php.net to get a copy of this message
Russell P Jones wrote: > Is there any way to use fread() or a similar function to read a section of > a document NOT starting at the beginning... > > for example, I can read the first 1000 bytes of a document with > > fread($doc, 1000); > > Is there any way to read the second 1000 bytes? > > perhaps, fread($doc, 1000, 2000); who knows.... > > or would substr work? substr would "work" but performance would most likely suck. Perhaps you are seeking http://php.net/fseek :-p -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#203862) next »