$n) {
preg_match('/(.{' . $n . '}.*?)\b/', $str, $matches);
return rtrim($matches[1]) . $delim;
}
else {
return $str;
}
}
require_once('lib/simplepie.inc');
$feed = new SimplePie();
// Add comma-separated URLs to set_feed_url to include multiple feeds
$feed->set_feed_url(array('http://simbios.stanford.edu/news.xml'));
// Adjust set_item_limit to control number of items output
$feed->set_item_limit(40);
$feed->init();
$feed->handle_content_type();
?>
News
|
|
|
get_items() as $item):
$dt = $item->get_date();
$source_string = "";
if (strpos($item->get_permalink(),"biomedtown"))
{
$source_string = " (NMS Physiome News)";
}
?>
get_title(); ?> get_description(),1000); ?>" . $source_string . "" ?>
More News... |
|