11.09.2018 Views

Aprender a desarrollar un sitio Web con PHP y MySQL

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Crear <strong>un</strong> flujo RSS<br />

Cree <strong>un</strong>a página <strong>PHP</strong> <strong>con</strong> el flujo RSS que muestre las últimas novedades del periódico "El País" a la<br />

siguiente dirección: http://ep01.epimg.net/rss/elpais/portada.xml<br />

Solución<br />

La página mostrar_rss.php es:<br />

<br />

<br />

<br />

Ejercicio <strong>con</strong> RSS<br />

<br />

<br />

<br />

<br />

channel->item as $item) {<br />

echo ’<br />

’.$item->titulo.’<br />

post; el: ’.date("d/m/Y",strtotime($item-><br />

pubDate)).’<br />

’.$item->texto.’ Leer todo el<br />

artículo<br />

’;<br />

}<br />

?><br />

<br />

<br />

www.FreeLibros.me

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!