I am currently reading and displaying the entire contents of a text file using the following code:
$html_get = file('content.txt');
foreach ($html_get as $html_num => $html_text) {
echo $html_text;
}
I would like, however, to have the code read the contents of the text file up to a certain line of code eg <!-- StopReadingHere -->. And a similar code to start reading from a line of code in a similar way.
Anyone know how best to do this?
Thanks,
Martin