0

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.

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by Dani
0

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:

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>";
?>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.