| 
<?php
header("Content-Type: application/atom+xml");
 require './rssfeed.class.php';
 
 $rss = new RSSFeed();
 
 $rss->setinfo('encoding','utf-8');
 $rss->setinfo('title','RSS FEED TITLE');
 $rss->setinfo('link','http://www.mysite.com/');
 $rss->setinfo('description','RSS FEED EXAMPLE');
 $rss->setinfo('language','en-US');
 $rss->setinfo('lastbuilddate',date('D, d M Y H:i:s'));
 
 $rss->addcontent(array(
 'title' => 'content title',
 'link' =>  'permalink',
 'guid' =>  'sth like permalink',
 'pubdate' => 'Tue, 13 Jul 2010 16:33:17',
 'content' => 'Hello, This is a RSS FEED creator class.<br />RSSFeed class makes creating RSS VALID feeds easier'
 ));
 
 
 $rss->renderfeed();
 
 exit();
 ?>
 |