View Single Post
Old 09-29-2005, 01:00 PM  
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
You can do the same thing with this:

Code:
require_once 'XML/RSS.php';
$rss =& new XML_RSS('http://some.blog.site/rss');
$rss->parse();
$item =& array_slice($rss->getItems(), 0, 1);
echo "<a href=\"{$item['link']}\" target=\"blank\">{$item['title']}</a>";
Just simple and sweet (Requires PEAR XML_RSS libs though).
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote