How To Display An XML Feed On Your Website

by Guest Author on February 8, 2010
in Uncategorized

Really Simple Syndication (RSS) has set out in a very huge way. Just as satellite tv beams a lot of channels into your home than you’ll watch, RSS permits to you display an endless amount of alternative peoples content. Whilst RSS XML feeds are masses, there is not as abundant in the means of clear, simple instruction when it comes to making use of these feeds.

If you’re one in all the webmasters who uses a content management system that makes using RSS XML feeds as easy as specifying a feed URL then you are fortunate in that respect. For others, the choices offered have a tendency to be offered by developers of the software and also the usage directions provided can usually be riddled with technical jargon. Many cry, “Use my feed”, however fewer tell you how.

One among the best and best ways that I’ve found to point out the content from an RSS XML kill one amongst my websites is to use a prepared made PHP parser. Now, do not worry regarding what which means, simply think of it as somthing that someone {has already} created; a blackbox that makes it simple for you to use content from RSS feeds and display it on your website.

For this guide, I’ve used MagpieRSS as a result of it’s compact, works well and is distributed under the GPL, which essentially means it’s free for you to use. Currently, MagpieRSS is written in PHP so you may want a compatible hosting account that enables you to execute PHP scripts.

For the purposes of this guide, I am assuming you have some level of basic data regarding websites e.g. you recognize how to FTP, amendment file permissions etc. Covering the fundamentals of running a website is beyond the scope of this article.

Instead, let’s cowl what are in all probability the most difficult steps; displaying the content from an RSS kill your website.

1. Download the most recent stable release of MagpieRSS.
2. Extract the contents of the ZIP file onto your computer.
3. The core files you wish from the ZIP package are rss_cache.inc, rss_fetch.inc, rss_parse.inc, rss_utils.inc. You’ll additionally need the extlib folder together with the Snoopy.class.inc file inside of it.
4. Create a new file to show your RSS feed. I’ve known as mine, index.php. Within this file, copy and paste the contents of the file stated below and save it.
5. Upload all of the files and therefore the folder mentioned in steps three and four to your hosting account. Put them into the required location, however ensure {that the} Snoopy.class.inc file remains at intervals the extlib folder.
6. Then visit the file you created in step four using your web browser.

That’s the basics of it. Once you’ve got got this far, customising the manner you present the content of the feed is relatively easy. Just refer back to the MagpieRSS web site for guidance on how to try and do this.

Are you looking for an easy way to earn money? Visit: UK paid surveys. UK paid surveys tell you the truth about paid surveys. You will get paid for taking simple surveys at UK paid surveys.

Liked this article? Read another similar article.
Share and Enjoy:
  • Digg
  • RSS
  • del.icio.us
  • Facebook
  • Blogosphere News
  • Twitter
  • MSN Reporter
  • Google Bookmarks
  • email
  • LinkedIn
  • MySpace
  • Ping.fm
  • Reddit
  • Slashdot
  • SphereIt
  • StumbleUpon
  • Technorati
  • FriendFeed
  • Yahoo! Bookmarks
  • Spurl
  • Yahoo! Buzz
  • Sphinn

Share Your Thoughts

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.