Aug/090
RSS Feed Generation with PHP

RSS Logo
I'm sure many of you can relate to my position, with life being a constant party, I don't have time to check my favourite sites every day. From stepping out of supercars to climbing onto private jets, my crazed antics leave no time for browsing for updates. Thankfully with the advent of RSS, I can set up my feed reader to check for updates periodically, saving up to a full minute - and he who owns a machine capable of getting me from 0-60 in 3.4 seconds should not have to wait for a webpage to load. Yet jokes aside, RSS feeds provide a real benefit, for both users and webmasters - it could be considered the web 2.0 newsletter and creates a bond which exceeds beyond a visit to your site.
In this article I provide a solution I make use of on my sites to generate an RSS feed each time a new article is posted, covering each aspect from reading the data off a mysql database to running file operations that create and write the XML file. Read on for a summary of RSS and the steps needed to achieve syndication bliss ...