tags:

views:

51

answers:

4

Hi all,

I need to put rss feed in to my website using PHP. For example, I need to get RSS feed from the following site.

http://www.ainonline.com/index.php?id=5

How can i accomplish this.

As i am new bie to RSS i need some professionals help to get a deep knowledge in it.

Hope u pals do...

Thanks in advance...

+1  A: 

Update Here is a site with a bunch of php scripts, including RSS scripts: http://gscripts.net/free-php-scripts/RSS_Scripts.html

If you are wanting to create the entire thing from scratch check this link out. I haven't walked through the whole thing myself, but it seems nice. http://tiffanybbrown.com/2005/12/22/dynamic-rss-feeds-using-php-mysql-and-apache/

I recommend that you know php and MySql as well as maybe reading a few tutorials about how RSS works.

Also, you could check out the RSS code in WordPress, that's what I did, though It may be a bit complicated to reverse engineer it, versus just reading tutorials and learning it from the ground up correctly.:)

KennyCason
thanks for your reply Cason... If possible provide me the good working examples form scratch... I googled.. but i can't find the best one....
Fero
I'll look around a bit.
KennyCason
I updated it to show a link to various RSS_Scripts.
KennyCason
+1  A: 

I found simplepie easy to use and well documented - saves having to understand the details of all the different feed types.

symcbean
+2  A: 

You can use Zend_Feed class in an MVC project or as a standalone library.

There are examples in the manual.

It is as simple as this:

$channel = new Zend_Feed_Rss('http://www.ainonline.com/index.php?id=5');
foreach ($channel as $item) {
    echo $item->title();
}
Boris Guéry
I like the Zend libraries, they have tons of example source to learn from as well
KennyCason