Displaying An RSS Feed On Your Website Using PHP And MagpieRSS
Member Login:
Article Sender Submissions
 
:. MAIN SERVICES
:. Webmaster Radio Sites

Webmaster Radio

Webmaster Radio, Podcasts for Marketing and SEO Profesionals.

White Label Media

Providing our clients with fully branded turnkey audio solutions for a number of 'on demand' and 'live' applications. From simple audio commercials, to professionally produced product launches.

Radio Advertising

Buy Category based Ads with Webmaster Radio Display audio ads and banners base on show or show category.

Search Bash

If you haven't been to a search bash party, you're missing out! If you an advertiser help sponsor a Search Bash Event for maximum exposure.

Affiliate Bash

If you haven't been to a Affiliate bash party, you're missing out! If you an advertiser help sponsor a Search Bash Event for maximum exposure.

Free Trade Publications

Looking for Trade Publications, we have tons of them and their all free!

SEO Services

SEO Seek offers you Professional SEO Help Information and SEO Services.



   Computers & Internet » Software Tips » Displaying An RSS Feed On Your Website Using PHP And MagpieRSS
Displaying An RSS Feed On Your Website Using PHP And MagpieRSS
These days everybody wants to have fresh content on their web site. Search engines like to see dynamic web pages, where the content is updated on a regular basis. Static pages that have information that doesn't change are not only boring, but less likely to be visited by a search engine spider than a page that changes every time it is displayed.

By using RSS and the MagpieRSS toolkit, you can import data from another web site or news source and display that information on your own site.

First, download the MagpieRSS kit from http://magpierss.sourceforge.net.

Next, unpack the archive, into a directory off your root on your web site called "rss".

Then, create a directory off your root called "cache". CHMOD this directory to 777.

You'll need to know the URL for the feed that you want to display. You can find this by searching for "RSS feed" in Google, or by going to one of the many sites that allow you to search thrown various sources for feeds. Syndic8.com is one, for example.

To display data from a single source, you can use code similar to this:

require_once('rss/rss_fetch.inc');

$news_feed = ';

error_reporting(E_ERROR);

$rss = fetch_rss("http://www.url-of-the-rss-feed.com");
$items = array_slice($rss->items, 0);
foreach ($items as $item )
{
$news_feed .= ' . $item['title'] . ' . $item['summary'] . ';
}

echo $news_feed;

MagpieRSS not only decodes the data, but it will also cache the data so it will retrieve news articles only once per hour.

Utilizing RSS in this fashion will allow your web site to have fresh content displayed constantly, and will (hopefully!) keep the search engine spiders interested in your site. The more the spiders index your site, the more pages you will have listed in the search engines. And with more pages listed in the search engine indexes you have a much better chance of attracting people to your web site.

Mikel Beck is the owner of a number of web sites, the latest being The Happy Hour Pub. http://www.happyhourpub.com
Visit Our Site at The Happy Hour Pub
:. ARTICLE CATEGORIES
Affiliate
Business
Computers & Internet
Economics
Entertainment
Finance & Accounting
Humanities
Industry Publications
Life Style
Web-Site
Writing


:. Featured Articles

What Is COM And How It’s Related To Registry Cleaner

What exactly does COM mean? What does it stand for and what does it do? COM in this article means Component Object Model and it is a Microsoft software architecture that can be called up to perform certain functions during the course of running a pro

Spyware - The PC Pest .

Spyware is any software that steals information from your PC without your authorization and knowledge. Spyware slows down your pc, using up system resources, CPU time, memory space, disk space and your Internet bandwidth.

What Is Windows Service and Its Relation To Registry.

A windows service is an executable program that has been specially designed to communicate with the SCM (service Control Manager) of windows operating system.

Signed and Unsigned ActiveX Controls.

Because of the malicious ActiveX controls doing the rounds on the Internet today Microsoft developed a security system that verifies the signature of an ActiveX control.

The Importance of Having A Flawless Registry.

The complex nature of the registry prevents it from being cleaned manually. This is the reason registry cleaner were developed to keep the Window based system free from such clutter.


©2008 ArticleSender.com All Rights Reserved.