I need to add a new item element to my RSS file, via PHP, without just generating the RSS from PHP. I know this will require removing older items, to match the number that I want displayed, but I don't know how to add them to the file in the first place.
My code looks somewhat like this:
<rss version="2.0">
<channel>
<title>My Site Feed</title>
<link>http://www.mysitethathasfeed.com/feed/</link>
<description>
A nice site that features a feed.
</description>
<item>
<title>Launched!</title>
<link>http://www.mysitethathasfeed.com/feed/view.php?ID=launched</link>
<description>
We just launched the site! Come join the celebration!
</description>
</item>
</channel>
</rss>
itemelements anyway. I can see how using dynamic RSS from PHP would be better for larger things, but is it really necessary for something this small? @deceze: I will look into cache-ing. Thanks.