Web Hosting Talk







View Full Version : How to Add RSS feed to a Web Page


seodevhead
09-23-2005, 04:53 PM
For the life of me I have looked everywhere to find out how one goes about adding some other website's RSS feed to a webpage of your own. Does anyone know how I can do this??? I see the XML code when I click on their RSS button... but what do I do with it? How do I get the updated feed on my own website? Thanks so much for your help. Take care.

Mekhu
09-23-2005, 05:10 PM
seo,

I've always wondered the same. Everyone always says something about a .php file and assumes you know the rest :)

e-zone
09-24-2005, 01:47 AM
You need something called a xml parser, it can read the file
and generate the output.

But what kind of programming language do you want it it ?

cgi, php, asp, etc ?

PostiniWholesaler
09-24-2005, 03:23 AM
I've been happy with Magpie RSS (magpierss.sourceforge.net). Open source PHP RSS parser.

ufopsi
09-24-2005, 04:54 AM
It's very easy to create an RSS feed: it is only a small XML file.
1. create an xml file, like rss.xml:
<?xml version="1.0" ?>
<rss version="2.0">

<channel>

<title>Site title.</title>
<description>Site description.</description>
<language>en-us</language>
<managingEditor>contact e-mail</managingEditor>
<webMaster>webmaster's e-mail</webMaster>
<docs>http://feedvalidator.org/docs/</docs>
<link>http://www.yoursite.com</link>

<item>
<title>News title (can be a new page of your website).</title>
<description>Description.</description>
<link>http://www.link.com</link>
</item>

</channel>

</rss>
You can have more items (<item> and </item>), guess up to 20 or 30 (not sure about this).

2. link it in your page as any file or add this between the meta tags (good for Firefox):
<link rel="alternate" type="application/rss+xml "title="RSS" href="http://www.yoursite.com/rss.xml" >

Tech4server
09-24-2005, 08:56 AM
goto p3k dot org/ rss . You will understand what to do next when you get there . Its easier and simple than the above mthods