Hi,
I am trying to write a php script that has to do the following thing(s):
I have a RTF document with more that 80 pages(each page has a header that is same for all the pages) so I am thinking to write a script that has to look for a word from that header and then seperate the pages starting from there till the page where the next header appear. For example:
Billing details for <First student name>
Date ||| Number Called
Jan 12 ||| 343-454-2453
Jan 14 ||| 222-454-3445
Jan 19 ||| 365-454-3434
Billing details for <Second student name>
Date ||| Number Called
Jan 15 ||| 545-554-5243
Jan 18 ||| 222-456-3643
Jan 20 ||| 365-454-3432
So I have the first word as "Billing details" for each student so I would like to keep this word as the search word and then split.
1) I know how to open a file but not sure about the formatting for this RTF file.
2) I guess I can look for the word(hope so!) but how to seperate the pages from that search word page till the page beofre it reaches the second occurance of that search word and write as a file.
Hope I am clear in explaining this.
Thanks in Advance