I want some code that can open an html file like "index.html" and replace all the text between some set comments like <!-- Start Here --!> and ends at <!-- End Insert Here--> like amany guestbooks do. Example:
<!-- Start Here --!>
Yesterday's results
<!-- End Insert Here-->
with
<!-- Start Here --!>
today's results
<!-- End Insert Here-->
I will be drawing the text from a mysql database that is a list of results. I know we use fopen() & fclose() to open & close a file according to what I read but not really sure about the best way to approach this. I thought about croning it. BUt not sure about how to delete all text in between the 2 comments first.
I think I would start with
I want the entire index page to stay the same but for the text between the comments to change...