Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Amir Begalinov  >  RSS parser  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Sample file for using rss parse class
Class: RSS parser
Parse RSS feeds with cache support
Author: By
Last change:
Date: 9 years ago
Size: 717 bytes
 

Contents

Class file image Download
<?

#######################=-##=-=##
#                              #
#  RSS parse engine v 1.0      #
#                              #
#  author: u0061mir@walla.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);


?>