Skip navigation ]

Creating RSS feeds on your website

Thursday, March 22, 2007

If you've used the Internet for any length of time, you're bound to have come across the term 'RSS' which stands for Rich Site Summary or Really Simple Syndication. RSS feeds are basically a simply way of letting other people subscribe to your content or display it on their website. You can even use it to show your latest blog posts on another part of your own website, or to promote one of your websites on another.

If you use any blogging platform such as Blogger, Wordpress etc...then RSS feeds are automatically generated and if you visit a site with a feed you'll probably see a little blue or orange button somewhere that says 'RSS' or 'XML'.

There are plenty of ways to display an RSS feed on your site - just search Google. However, most of these use JavaScript and you might not want to use this on your site.

Here's how to do it with Open Source software using PHP:


EDIT: in the above code
foreach ($rss->items as $item)
should read

foreach ($items as $item)
...And that should be it! Obviously this is just a very brief guide to outline the basics and I can't guarantee that this will work on all hosting packages. RSS feeds can contain a lot more information than just the title, link and description that I've outlined above so for more detailed information see MagpieRSS.

For "The Anatomy of an RSS feed" - see http://www.webreference.com/authoring/languages/xml/rss/feeds/ and if you're wanting to create a feed 'on the fly' with PHP and MySQL see http://www.webreference.com/authoring/languages/xml/rss/custom_feeds/

Labels: ,

Signed by Emma

Get paid to review my blog post

Subscribe to RSS feed Subscribe | By e-mail

Links

Ugly: houses we buy - fast cash
Learn how forms processing can save you time and money.