CBS Top Stories - Newsdialy.com

Go to content

Main menu:

News > Top Stories


CBS - Top Stories
'http://feeds.bbci.co.uk/news/rss.xml?edition=us', CURLOPT_USERAGENT => 'spider', CURLOPT_TIMEOUT => 120, CURLOPT_CONNECTTIMEOUT => 30, CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_ENCODING => 'UTF-8' )); $data = curl_exec($curl); curl_close($curl); $xml = simplexml_load_string($data, 'SimpleXMLElement', LIBXML_NOCDATA); //die('
' . print_r($xml], TRUE) . '
'); ?> channel->item as $item) { $creator = $item->children('dc', TRUE); echo '

' . $item->title . '


'; echo '

Created: ' . $item->pubDate . '

'; echo '

Author: ' . $creator . '

'; echo '

' . $item->description . '

'; echo '

Read more: ' . $item->title . '

'; } ?>
 
Copyright 2015. All rights reserved.
Back to content | Back to main menu