* @link http://www.website-php.com * @copyright WebSite-PHP.com 12/05/2015 * @version 1.2.13 * @access public * @since 1.2.2 */ // Import the RSSFeed class require_once 'path/to/RSSFeed/RSSFeed.class.php'; // MySQL Connection $connection = mysql_connect('localhost', 'root', 'example'); mysql_select_db('website', $connection); try { // Create the new instance of the RSS Feed $rssFeed = new RSSFeed('utf-8'); // Activate the string protection $rssFeed->setProtectString(true); // Set the feed title $rssFeed->setTitle('My blog : the best in the world'); // 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