Ah cheers! I was able to work out a sorting method using the link you provided, took me a while to get it tho!
I've just got one last question which I'm struggling with.
ATM, I've got this:
$num_items = 8;
$urls = array( "http://www.url1.com", "http://www.url2.com", "http://www.url3.com" );
$items = array();
foreach ($urls as $url) {
$rss = fetch_rss($url);
$items = array_merge($items, array_slice($rss->items, 0, $num_items));
}
usort($items, 'date_cmp');
foreach ( $items as $item ) {
$title = $item[title];
$url = $item[link];
echo "- <a href=$url>$title</a><br />";
}
function date_cmp($a, $b)
{
$atime = (empty($a['date_timestamp']))
? strtotime($a['dc']['date'])
: $a['date_timestamp'];
$btime = (empty($b['date_timestamp']))
? strtotime($b['dc']['date'])
: $b['date_timestamp'];
if ($atime == $btime)
return 0;
return ($atime > $btime) ? -1 : 1;
}
My Question is, is there any way of identifying from the individual rss outputs which url they originated from?
So this could then lead me on to being able to somehow detect which rss output came from which url rss feed and therefore displaying a corresponding picture.
E.G say one of the rss feeds was (i know this isn;t a real rss feed btw lol)
www.google.com/rss, for each rss feed that got outputed originating from this url would have the google favicon next to it.
Is this possible?
Cheers again =]