Custom Search
|
|
The Best Way To Show An Xml Feed On Your Web Site
If you're one of the webmasters who uses a content management system that makes making use of RSS XML feeds as simple as specifying a feed URL then you're fortunate in that respect. For others, the selections available tend to be offered by developers of the software and the usage instructions provided can often be riddled with technical jargon. Many cry, "Use my feed", but fewer tell you how. One of the best and easiest ways I've found to present the content from an RSS XML feed on one of my websites would be to use a ready made PHP parser. Now, don't be troubled about what that means, just consider it as somthing that someone has already created; a blackbox that makes it easy for you personally to use content from RSS feeds and display it on your website. For this guide, I've used MagpieRSS because it is compact, will operate well and is distributed under the GPL, which basically means it can be free for you personally to use. Now, MagpieRSS is written in PHP so you'll need a compatible hosting account that allows you to execute PHP scripts. For the purposes of this guide, I am assuming you've some level of basic knowledge about websites e.g. you already know tips on how to FTP, change file permissions etc. Covering the basics of working a website is beyond the scope of this article. Instead, let's cover what are probably the most difficult steps; displaying the content from an RSS feed on your website. 1. Download the latest stable release of MagpieRSS. 2. Extract the contents of the ZIP file onto your computer. 3. The core files you need from the ZIP package are rss_cache.inc, rss_fetch.inc, rss_parse.inc, rss_utils.inc. You can also need the extlib folder together with the Snoopy.class.inc file inside of it. 4. Create a new file to display your RSS feed. I've called mine, index.php. Inside this file, copy and paste the contents of the file referred to below and save it. 5. Upload all of the files and the folder mentioned in steps 3 and 4 to your hosting account. Put them into the desired location, but ensure that the Snoopy.class.inc file is still inside of the extlib folder. 6. Then take a glimpse at the file you created in step 4 operating with your web browser. That's the basics of it. Once you've got this far, customising the way you present the content of the feed is relatively easy. Just refer back to the MagpieRSS website for guidance on how to do this. Stanley 93-310 5/8 Board Bender Deck Tool nike - oceania-(black/vineyard-vines - roll-neck-donegal-sweater-(taupe) - apparel Article Directory: http://www.articledashboard.com |
|
© 2005-2011 Article Dashboard