Mega Code Archive
Categories
/
Php
/
XML
Loading a remote XML document
$xml = simplexml_load_file('http://rss.news.yahoo.com/'); print "
\n"; foreach ($xml->channel->item as $item) { print "
$item->title
\n"; } print "
"; ?>