Here is what I wanna do. I have an html file for news that I pull into my content area. here is a sample of the news file
<h2>Title</h2>
<p>News text</p>
<h4>Title</h2>
<p>News text</p>
<a href="">Link here</a>
I have coded a form that will add new news to the top of this file. It can have a couple paragraphs, an image file and link under the <h></h>'s and a possible link at the bottom, with a blank line with the next news undernieth.
What I would like to do is code a way to move a block of news (say after 7 blocks of news are in the file) to an archive file for the month.
I was thinking I could count the number of <h></h>'s in the file, and if there are more than 7, then take the last block of news and move it. I just dont know how to go about that.
Any Ideas? I dont have MySQL or a database at the moment. It has to be pure PHP and text.
Thanks in advance