Its very easy to get information from a rss-feed with PHP, look at this code.
GeSHi (php-brief):
<?php
// URL of the feed
$url = 'http://marook-online.de/smf/index.php?action=.xml&limit=10&type=rss2';
// Max length of link <a href=www.google.com>i_mean_this_here</a>
$maxl = 20;
// Create the xml parser
$p = xml_parser_create();
// Get content from feed and store it into variable
// Free resources
xml_parser_free($p);
// Do a For-Loop 10 times to get the 10 recent posts
for ($i = 1; $i <= 10; $i++) {
// Store the title
$title = $results[$index[TITLE][$i]][value];
// Store the link
$link =
$results[$index[LINK][$i]][value
];
// Display the link, the tooltip is showing the whole title
// where the link name is shortend to the max-length plus "..." to
// indicate, that the link is shortened.
echo '<li><a title="' .
$title .
'" target=_blank href=' .
$link .
'>' .
substr($title,
0,
$maxl) .
' ...</a></li>' .
"\n";
}
?>
Created by GeSHI 1.0.7.20