< ?php
$i=array();
$doc = new DOMDocument();
@$doc->load(‘http://feeds.feedburner.com/auctioneertech/mJPx?format=xml’);
foreach ($doc->getElementsByTagName(‘item’) as $node) {
$i[‘atech’][‘title’] = $node->getElementsByTagName(‘title’)->item(0)->nodeValue;
$i[‘atech’][‘description’] = $node->getElementsByTagName(‘description’)->item(0)->nodeValue;
$i[‘atech’][‘link’] = $node->getElementsByTagName(‘link’)->item(0)->nodeValue;
$i[‘atech’][‘pubDate’] = $node->getElementsByTagName(‘pubDate’)->item(0)->nodeValue;
break;
}
$doc = new DOMDocument();
@$doc->load(‘http://feeds.feedburner.com/AaronTraffasBandAaronTraffas’);
foreach ($doc->getElementsByTagName(‘item’) as $node) {
$i[‘atb’][‘title’] = $node->getElementsByTagName(‘title’)->item(0)->nodeValue;
$i[‘atb’][‘description’] = $node->getElementsByTagName(‘description’)->item(0)->nodeValue;
$i[‘atb’][‘link’] = $node->getElementsByTagName(‘link’)->item(0)->nodeValue;
$i[‘atb’][‘pubDate’] = $node->getElementsByTagName(‘pubDate’)->item(0)->nodeValue;
break;
}
$doc = new DOMDocument();
@$doc->load(‘http://feeds.feedburner.com/aarontraffas’);
foreach ($doc->getElementsByTagName(‘item’) as $node) {
$i[‘at’][‘title’] = $node->getElementsByTagName(‘title’)->item(0)->nodeValue;
$i[‘at’][‘description’] = $node->getElementsByTagName(‘description’)->item(0)->nodeValue;
$i[‘at’][‘link’] = $node->getElementsByTagName(‘link’)->item(0)->nodeValue;
$i[‘at’][‘pubDate’] = $node->getElementsByTagName(‘pubDate’)->item(0)->nodeValue;
break;
}
$i[‘atech’][‘pubDate’] = date(‘j F’,strtotime($i[‘atech’][‘pubDate’]));
$i[‘atb’][‘pubDate’] = date(‘j F’,strtotime($i[‘atb’][‘pubDate’]));
$i[‘at’][‘pubDate’] = date(‘j F’,strtotime($i[‘at’][‘pubDate’]));
?>
< ?php echo $i['atech']['pubDate']; ?>< ?php echo $i['atech']['title']; ?> < ?php echo $i['atb']['pubDate']; ?>< ?php echo $i['atb']['title']; ?> < ?php echo $i['at']['pubDate']; ?>< ?php echo $i['at']['title']; ?>
< ?php echo $i['atech']['description'];?>
< ?php echo $i['atb']['description'];?>
< ?php echo $i['at']['description'];?>
Like this:
Comments are closed.