View Single Post
Old 09-29-2005, 01:18 PM  
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Quote:
Originally Posted by mrkris
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).
I tried adding my /rss.php file to it but it wasn't accepted, I think because it's a "rss.php" file. Any input?
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote