FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

RSS Help PLease

 


Scorpio
I want to incorporate RSS feeds from site like news.yahoo.com into my website

How should I do this?

Please explain briefly if you dont mind,

Thanks
rohan2kool
well.. it is rather easy to do it on php 5.x. But on php 4.x it is rather cumbursome and you need the eXpat libraries installed. Basically what you need to do is parse the RSS feed with the XML parser.

The <channel> node is the root node.
The <title>, <description>, <link> and <pubdate> are the title, description and publishing date of the feed resp.
Then every item in the RSS feed has the following nodes:

<title>: The <title>
<link>: Link to the main article or whatever
<description>: The feed

You can try http://in2.php.net/manual/en/ref.xml.php for the XML parsing functions.

In php5, using SimpleXML, it is very easy to make one.. it's just a bit difficult in php4...
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.