Location: PHPKode > scripts > RSSCreator > thinkphp-RSSCreator-06f6c72/1/feed.php

 //include class dbconnect

 //include class rss

 //will be outputting an RSS+XML document
 header("Content-Type: application/rss+xml");

 //instantiate the class RSS , therefore create an object RSS
 $rss = new RSS('My RSS Adrian Statescu','http://thinkphp.ro','PHP Articles and MooTools Stuff');

 //call the method getFeed() that will return the actual RSS 
 //feed once it has been constructed in the class,
 //so, perform an echo on the return value to write the data

Return current item: RSSCreator