load($website);
$count = 0;
$item = $dom_object->getElementsByTagName(“item”);
foreach( $item as $value )
{
$count++;
if($count>2)
break;
$title = $value->getElementsByTagName(“title”);
$title = $title->item(0)->nodeValue;
$link = $value->getElementsByTagName(“link”);
$link = $link->item(0)->nodeValue;
$text = $value->getElementsByTagName(“description”);
$text = $text->item(0)->nodeValue;
echo ‘
‘.$text.’
‘;
}
}
read2(“http://thehill.com/taxonomy/term/43/feed”, $dom_object);
read2(“http://thehill.com/taxonomy/term/48/feed”, $dom_object);
read2(“http://thehill.com/taxonomy/term/17/feed”, $dom_object);
read2(“http://thehill.com/taxonomy/term/1116/feed”, $dom_object);
?>
Follow Us!