View Full Version : RSS Feeds
Hardliner
January 17th, 2005, 01:31 AM
I'm trying to setup my personal web site with some RSS Feeds and I am needing some assistance on getting this setup. I grabbed the Magpie Parser but I'm not sure what to do from there. I understand basic HTML, use FrontPage & Dreamweaver for my HTML work, and I guess that's about it. Any help is appreciated.
degsy
January 17th, 2005, 02:47 AM
You need to give more info about the code and what you want to achieve.
Hardliner
January 17th, 2005, 08:39 PM
You need to give more info about the code and what you want to achieve.
I do not know what you mean about more info about the code. I know that the plug in is used in XML and something about PHP but that's all I understand about it.
I am hoping to achieve having certain RSS feeds to display on my web site.
degsy
January 17th, 2005, 10:41 PM
it gives you an example in the INSTALL file.
Upload the files and then add the code into your PHP script.
Here is an example to show the CTH RSS feed
<?
require_once('magpierss/rss_fetch.inc');
$url = 'http://www.cybertechhelp.com/forums/external.php?type=rss';
$rss = fetch_rss( $url );
echo "Channel Title: " . $rss->channel['title'] . "<p>";
echo "<ul>";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
echo "<li><a href=$href>$title</a></li>";
}
echo "</ul>";
?>
degsy
January 17th, 2005, 10:57 PM
example http://www.degs.co.uk/test/rss/rss.php