shachi
06-28-2006, 06:31 PM
Hello everyone,
I am new to PHP so please excuse me for any mistakes I make in this part of the forum. What I wanted to know is that can't I retrieve the text between special characters from a seperate file?? For e.g. I have a file called test.txt which has the following contents:
=== Title ===
This is a test page with a title in bold.
=== Title2 ===
This is another test with second title.
Now I want to retrieve that file with PHP and get ONLY the text between the starting === & === the ending. Any ideas how I can achieve that??
I am using dokuwiki and want to get the section title by the way.
Any helps would be greatly appreciated.
I am new to PHP so please excuse me for any mistakes I make in this part of the forum. What I wanted to know is that can't I retrieve the text between special characters from a seperate file?? For e.g. I have a file called test.txt which has the following contents:
=== Title ===
This is a test page with a title in bold.
=== Title2 ===
This is another test with second title.
Now I want to retrieve that file with PHP and get ONLY the text between the starting === & === the ending. Any ideas how I can achieve that??
I am using dokuwiki and want to get the section title by the way.
Any helps would be greatly appreciated.