</rss>'; return $rss; } } $newsData = array('title' => 'GIT repository for the source', 'content' => 'The source code for my site is now on GitHub, so if you are interested on how my site is build the URL is: <a href="http://github.com/high/cgeek">http://github.com/high/cgeek</a>.', 'created' => mktime(0, 0, 0, 3, 14, 2009)); $newsItem = new NewsItem(); $newsItem->loadData($newsData); $newsItems[] = $newsItem; $newsData = array('title' => 'New site is up', 'content' => 'Well, here is the new site. My goal is to make it as simple as possible and just display the things that are essential to me', 'created' => mktime(0, 0, 0, 3, 12, 2010)); $newsItem = new NewsItem(); $newsItem->loadData($newsData); $newsItems[] = $newsItem; $rss = new RSSFeed(); $rss->setNewsItems($newsItems); $rssText = $rss->compile(); file_put_contents("rss.xml", $rssText); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>High's page</title> <link rel="stylesheet" type="text/css" href="site.css"></link> </head> <body> <div id="content"> <div id="title">