homepage Welcome to WebmasterWorld Guest from 54.145.172.149
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

    
Newbie asking a basic question
How do I put a RSS feed to my web page? Please give me an example
bulungu

5+ Year Member



 
Msg#: 236 posted 2:49 pm on Apr 26, 2005 (gmt 0)

Hello,
I've read what some of you have said. I've read the online tutorials but I still don't know how to incorporate an RSS feed to a web page. I've done it to myblogsite.com and it works but I want to incorporate it in a regular site.

Here is an RSS feed:
<snip>

Can you tell me how to display this feed on my regular website. I can see .xml codes for this feed but how do I display the feed on a pape on a server?

Thanks for your help.

[edited by: werty at 8:16 pm (utc) on April 26, 2005]
[edit reason] Removed URL [/edit]

 

werty

WebmasterWorld Administrator 10+ Year Member



 
Msg#: 236 posted 8:23 pm on Apr 26, 2005 (gmt 0)

Bulungu, you need to install an RSS parser on your server in order to show the RSS feeds.

You can go with a javascript version which is really easy, but requires the user to have javascript turned on, and the content will not be crawled/index by the search engines.

The second method is to use a php or asp solution that will
parse the files for you. This thread contains some links to various RSS parsers: [webmasterworld.com...]

Also this thread contains a link to an excellent tutorial on RSS feeds: [webmasterworld.com...]

bulungu

5+ Year Member



 
Msg#: 236 posted 2:07 pm on Apr 27, 2005 (gmt 0)

Thanks Werty:

The links seem helpful. I have looked into several RSS files and I see the XML codes in them. I've spent some time trying to compare and understand what these codes mean and how I can scrap them myself.

The question is how do I use PhP to display the feed on my website?

Suppose I have a RSS file like "myfeed.xml" and I have a Php file like "myfeed.php". Assuming that both files are in the same directory of the web server. What will the "myfeed.php" file codes be? What if I have "myfeed1.xml" and "myfeed2.xml"?

<?php
//something here to display the feed(s)
}
?>

werty

WebmasterWorld Administrator 10+ Year Member



 
Msg#: 236 posted 4:17 pm on Apr 27, 2005 (gmt 0)

Have you looked at magpie? [magpierss.sourceforge.net...]

bulungu

5+ Year Member



 
Msg#: 236 posted 11:43 pm on May 1, 2005 (gmt 0)

Sorry Werty for the delay. I have now figured out the whole thing regarding RSS. Thanks for your assistance.

Bulungu

werty

WebmasterWorld Administrator 10+ Year Member



 
Msg#: 236 posted 2:10 am on May 2, 2005 (gmt 0)

No problem, glad you got it worked out.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved