<?php //permite requisições a urls externas ini_set('allow_url_fopen', 1); ini_set('allow_url_include', 1); set_time_limit(0); date_default_timezone_set('America/Sao_Paulo'); simplexml_load_file($feed); $rss = new DOMDocument(); $rss->load('https://www.calimaerp.com/feed.xml'); $feed = array(); foreach ($rss->getElementsByTagName('item') as $node) { $item = array ( 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => strip_tags($node->getElementsByTagName('description')->item(0)->nodeValue), 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue, ); array_push($feed, $item); } $limit = 10; for($x=0;$x'.$title.'
'; echo 'Posted on '.$date.''; echo '

'.$description.' Leia a Materia Completa

'; } ?> Voltar...
www.000webhost.com