Re: readfile from startpos to endpos

From: Date: Tue, 06 Jan 2004 00:41:27 +0000
Subject: Re: readfile from startpos to endpos
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-173799@lists.php.net to get a copy of this message
Thanks a bunch. J "Jlake" <jalake@idealpromotional.com> wrote in message news:20040105234531.49854.qmail@pb1.pair.com... > I've been looking around for a bit and can't quite find what I'm looking to > do. > > I want to read a file (from a pattern matched start position) to (a pattern > matched end position) > > $startPos = strpos($file, '<!- start ->'); > $endPos = strpos($file, '<!- end ->'); > > $stuff = fread($file, ($endPos - $startPos)); > > something like that ? > > Thanks, > > J.

« previous php.general (#173799) next »