[PHP] Re: readfile from startpos to endpos

2004-01-05 Thread JLake
Thanks a bunch. J "Jlake" <[EMAIL PROTECTED]> wrote in message 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($

[PHP] Re: readfile from startpos to endpos

2004-01-05 Thread DvDmanDT
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=

[PHP] Re: readfile from startpos to endpos

2004-01-05 Thread Matt Grimm
Close. You need to adjust for the length of your pattern. So if you're matching against "", then your actual start position (minus the start comment) is the strpos plus strlen($pattern), or 14 in this case. $startPos = strpos($file, '') + 14; -- Matt Grimm Web Developer The Health TV Channel, I