Location: PHPKode > scripts > BNC Free PHP Rss Rarser > php-rss-parser/php-rss-parser/index.php
<?php

/**************************************************************************************************
|
| Copyright (c) 2010 BNC Scripts [  www.bncscripts.com ] . All rights reserved.
|
|
|**************************************************************************************************/



include 'bncscripts_rss.php';



// TYPE THE FEED HERE
$feed='http://rss.cnn.com/rss/edition.rss'; 





//THE OUTPUT HTML
$rss = new BncRSS($feed);
if(!$rss->Error) 
{

echo '<ul>';	
while($rss->fetch())
{

echo '<li><b><a href="' . $rss->Item['link'] . '">' . $rss->Item['title'] . "</a></b><br/><em>" . $rss->Item['description'] . "</em></li>\n";

}	
echo '</ul>';

}
else {die('Error :' . $rss->Error);}

?>
Return current item: BNC Free PHP Rss Rarser