Re: [php-list] scanning a file for text and coping it

2006-09-28 Thread Wade Smart
09282006 2031 GMT-6 I have been working on a project to scan a file for a descriptive start word, end word, and then copies the middle text. So far, this code is working but It scans a directory to see how many files are there. Then it scans a file for how many quotes there are. Right now

Re: [php-list] scanning a file for text and coping it

2006-09-22 Thread Wade Smart
09222006 1223 GMT-6 Ok. I have been working with this a bit and Im not getting something right. Right now I am just scanning for a single quote line. As you said, find the beginning and then the end and then use substr to get the middle. And that works - except, it is copying most of the document

Re: [php-list] scanning a file for text and coping it

2006-09-09 Thread James Keeline
--- Wade Smart <[EMAIL PROTECTED]> wrote: > 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 Regular express

Re: [php-list] scanning a file for text and coping it

2006-09-09 Thread Ski Dawg
On Sat, 2006-09-09 at 13:14 -0500, Wade Smart wrote: > 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 t

Re: [php-list] scanning a file for text and coping it

2006-09-09 Thread Wade Smart
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

Re: [php-list] scanning a file for text and coping it

2006-09-09 Thread Ski Dawg
On Sat, 2006-09-09 at 08:54 -0500, Wade Smart wrote: > Here is what I need to do: > 1. open a text file in a folder, > 2. scan the file for a predetermined word that marks the beginning of an > area, > 3. scan the file for a predetermined word that marks the end of an > area, > 4. copy the text be

[php-list] scanning a file for text and coping it

2006-09-09 Thread Wade Smart
09092006 0651 GMT-6 About a year ago I was wanting to search my documents in a folder and 1. find, 2.cut and 3. paste certain sections into another folder - all automatically. I never really did figure it out and as it was really only for fun, I dropped it. Well, at Wednesdays meeting a questio