Source PHP:
<?php
include_once(dirname(__FILE__)'/lib/SimplePieAutoloader.php');
include_once(dirname(__FILE__)'/lib/idn/idna_convert.class.php');
$feed = new SimplePie();
$feed->set_cache_location(dirname(__FILE__).'/cache');
$feed->set_useragent('');
$feed->set_feed_url('/feed/');
$feed->init();
$feed->handle_content_type();
foreach($feed->get_items() as $item) {
$data=array(
'post_title'=>$item->get_title(),
'post_permalink'=>$item->get_permalink(),
'post_content'=>$item->get_content(),
'post_date'=>$item->get_date('Y-m-d H:i:s'),
'post_hash'=>$item->get_id(true)
);
unset($data);
}
?>
include_once(dirname(__FILE__)'/lib/SimplePieAutoloader.php');
include_once(dirname(__FILE__)'/lib/idn/idna_convert.class.php');
$feed = new SimplePie();
$feed->set_cache_location(dirname(__FILE__).'/cache');
$feed->set_useragent('');
$feed->set_feed_url('/feed/');
$feed->init();
$feed->handle_content_type();
foreach($feed->get_items() as $item) {
$data=array(
'post_title'=>$item->get_title(),
'post_permalink'=>$item->get_permalink(),
'post_content'=>$item->get_content(),
'post_date'=>$item->get_date('Y-m-d H:i:s'),
'post_hash'=>$item->get_id(true)
);
unset($data);
}
?>