Location: PHPKode > scripts > RSS parser > sample.php
<?

#######################=-##=-=##
#                              #
#  RSS parse engine v 1.0      #
#                              #
#  author: hide@address.com  #
#                              #
##=-##=-=#######################


require("config.php");
require("rss.class.php");



//New rss class initialization, with sample Url 

$RSS = new Rss("http://today.reuters.com/rss/businessNews/");





//Set HTML template for displaying rss items

$RSS->Template=RSS_TEMPLATE;




//Get all elements of parsed RSS source into array $rssContent

while($value=$RSS->parseItems()) $rssContent[]=$value;



//Displaing array structure (for sample)

print_r($rssContent);


?>
Return current item: RSS parser