09092006 1312 GMT-6 That is what Im talking about, except for one thing. There are usually more than one section to copy. So, when I used strpos() to find the first section to be copied, I might still have two to 15 other sections to find.
wade > > I am not sure I am completely understanding your situation, but would > something like this work: > 1) Read the file into a variable, like with file_get_contents() > 2) Find the numeric position of the first string, maybe with strpos() > 3) Find the numeric position of the last string, again, with strpos() > 4) use substr() to grab the string in between > substr (filestring, firstpos, length ) where length=lastpos-firstpos > http://us2.php.net/manual/en/function.substr.php > 5) Write string returned in #4 to a file > > Put the whole thing in a loop for each file. > > HTH, > -- > Doug > > Registered Linux User #285548 (http://counter.li.org) > ---------------------------------------- > Random Thought: > You will triumph over your enemy. > > > > Community email addresses: > Post message: [email protected] > Subscribe: [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > List owner: [EMAIL PROTECTED] > > Shortcut URL to this page: > http://groups.yahoo.com/group/php-list > Yahoo! Groups Links > > > > > > > > > > [Non-text portions of this message have been removed] Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/php-list/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
