Re: readfile from startpos to endpos
| From: | DvDmanDT | Date: | Tue, 06 Jan 2004 00:40:39 +0000 |
| Subject: | Re: readfile from startpos to endpos | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173798@lists.php.net to get a copy of this message | ||
Like Matt Grimm said, add +14, and do fseek($file,$startPos);
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
http://securityresponse.symantec.com/avcenter/venc/data/w32.swen.a@mm.html
##########################
"Jlake" <jalake@idealpromotional.com> skrev i meddelandet
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.