Example #1
0
 // Set the feed description
 $rssFeed->setDescription('A little blog, which talks about Web programming');
 // Set the feed link
 $rssFeed->setLink('http://www.mywebsite.com/blog/rss/posts.php');
 // Set the feed publication date
 $rssFeed->setPubDate('2007-08-01');
 // Set the feed last build date
 $rssFeed->setLastBuildDate(date('Y-m-d'));
 // Set the feed webmaster
 $rssFeed->setWebMaster('*****@*****.**', 'John Doe');
 // Set the feed managing editor
 $rssFeed->setManagingEditor('*****@*****.**', 'John Doe');
 // Set the feed image
 $rssFeed->setImage('http://www.mywebsite.com/image/logo.jpg', 'My Logo', 'My blog', 100, 200);
 // Set the feed categories
 $rssFeed->setCategory('http://technorati.com/posts/tag/php', 'PHP Language');
 $rssFeed->setCategory('http://technorati.com/posts/tag/html', 'HTML Language');
 $rssFeed->setCategory('http://technorati.com/posts/tag/java', 'Java Language');
 $rssFeed->setCategory('http://technorati.com/posts/tag/asp', 'ASP Language');
 // Set the feed copyright
 $rssFeed->setCopyright('(C) Copyright 2007 - MyWebsite - All rights reserved');
 // Set the feed rating
 $rssFeed->setRating('(PICS-1.1 "http://www.classify.org/safesurf/" l r (SS--000 1))');
 // Set the feed generator
 $rssFeed->setGenerator('Powered with RSSFeed Class by Hugo "Emacs" HAMON');
 // Set the feed generator
 $rssFeed->setLanguage('fr');
 // Set the feed docs
 $rssFeed->setDocs('http://fr.wikipedia.org/wiki/RSS_(format)');
 // Set the feed cloud
 $monFlux->setCloud('http://www.oreilly.com', 80, '/RPC2', 'pleaseNotify', 'XML-RPC');