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/[EMAIL PROTECTED]
##########################
"Jlake" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to