How exactly do you implement your RSS to your own site?

Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Dec 2004
Posts: 34
Reputation: Kwak is an unknown quantity at this point 
Solved Threads: 0
Kwak Kwak is offline Offline
Light Poster

How exactly do you implement your RSS to your own site?

 
0
  #1
Nov 24th, 2005
Hello there,

After a search on google, I still could not find the answer to this simple question.


How do you add your blog rss to your own frontpage? The site is all .php.
I have no clue on how to make your rss entries show up on the frontpage inside a table.

Little guidance? Thanks in advance.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 127
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: How exactly do you implement your RSS to your own site?

 
0
  #2
Nov 24th, 2005
Let me make sure I understand your question corectly. You have an RSS feed and you want to syndicate this feed on your PHP-driven site?

What you will need is a PHP-based RSS parser. A relaly good, and really powerful one, that I love is called MagpieRSS - http://magpierss.sourceforge.net

It has lots of options but don't let that overwhelm you. Read the FAQ and you will see that it only takes a couple of lines and for you to upload the magpierss folder.

Here is a very basic example:

[php]
require_once('magpierss/rss_fetch.inc');
$url = "path/to/rss/feed.rss";
$rss = fetch_rss($url);
echo "<ul>";
foreach ($rss->items AS $item)
{
$title = $item['title'];
$link = $item['link'];
echo "<li><a href=\"$link\">$title</a></li>";
}
echo "</ul>";
?>
[/php]
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the RSS, Web Services and SOAP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC