RSS Feeds in website

PHTech

Senior Member
Joined
Aug 21, 2006
Messages
588
Reaction score
0
Location
Witbank
Hi there,

I want to display RSS feeds in my intranet site, from eg. News24 or something similiar...

How can I do it, bu using Dreamweaver CS4...?

Thanx...
 
Are you familiar with any scripting languages? You need to parse the RSS feed and use as you see fit. If you don't know how to do one yourself you will need to google one I am afraid.
 
Hi there,

I want to display RSS feeds in my intranet site, from eg. News24 or something similiar...

How can I do it, bu using Dreamweaver CS4...?

Thanx...

You running the intranet site in asp/html/php? If PHP then use the code below. Here is a link to working example of it. http://rssfeeds.net16.net/rss/mybb-example.php

Here is a link to a rss site i started working on. http://rssfeeds.net16.net/rss/

PHP:
<?

$rssurl="http://feeds.news24.com/articles/News24/TopStories/rss";
$count=0;
$doc = new DOMDocument();
$doc->load($rssurl);
$arrFeeds = array();

foreach ($doc->getElementsByTagName('item') as $node) {
$itemRSS = array (  
'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
);

array_push($arrFeeds, $itemRSS);
$count++;
	
$rsstitle=$itemRSS['title'];
$rssdesc=$itemRSS['desc'];
$feedurl=$itemRSS['link'];
	
?>

<a href="<? echo($feedurl); ?>" target=new><? echo($rsstitle); ?></a><br>

<?

}

?>
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X