Search script
Posted: Sat Jan 02, 2010 7:15 am
I have extensively searched for some help on this matter, but all i can seem to find is classes for searching a directry for a file.
What im after is this:
A script which searches a file, namely another PHP file, and finds the start of something, which will be defined by:
it will also have another line a couple of lines down:
What i need, is to get everything inbetween them, put them into a variable, then put them somewhere else in the file...how would i go about that?
What im after is this:
A script which searches a file, namely another PHP file, and finds the start of something, which will be defined by:
Code: Select all
<?php
//start_header
?>Code: Select all
<?php
//end_header
?>