Okay, I'm adding the final touches to a XML News script.
Within the document, a news item looks like so:
<newsitem>
<newshead>
<newsdate>12/23/00</newsdate>
<newstime>16:50 Eastern Standard Time</newstime>
<newsheader>This is the headline.</newsheader>
</newshead>
<newstext>The news text goes here.</newstext>
<newsbyline>Submitted by WorldMaker</newsbyline>
</newsitem>
Now, my script easily appends a new newsitem to the top of a script using str_replace.
What if I wanted to find all the newsitems older than, say, 2 months and delete them?
Any ideas, or at least directions to try?
--WorldMaker--