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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php