News
";
echo date("Y.m.d") . "
";
echo date("Y-m-d") . "
";
// Make sure SimplePie is included. You may need to change this to match the location of simplepie.inc.
require_once("../simplepie/simplepie.inc");
// We'll process this feed with all of the default options.
$feed = new SimplePie();
$feed->set_feed_url(array(
'http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml',
'http://rss.news.yahoo.com/rss/topstories',
'http://news.google.com/?output=atom',
'http://rss.slashdot.org/Slashdot/slashdot',
'http://rss.cnn.com/rss/cnn_topstories.rss',
'http://www.newsvine.com/_feeds/rss2/index'
));
$feed->init();
$feed->handle_content_type();
echo $feed->get_title();
// Let's begin our XHTML webpage code. The DOCTYPE is supposed to be the very first thing, so we'll keep it on the same line as the closing-PHP tag.
?>
Sample SimplePie Page
get_items() as $item):
?>
get_description(); ?>
Posted on get_date('j F Y | g:i a'); ?>