Hola.
Me gustaria saber cómo hacer para recibir noticias via rss de otras páginas web y mostrarlas en la mia.
Gracias de antemano. Saludos
| ||||
Respuesta: recibir y mostrar rss Tendrias que parsear el archivo XML de las demas paginas web. Usa SimpleXML. http://www.php.net/manual/es/book.simplexml.php Un ejemplo seria: Código PHP:
Código:
Esos codigos los tenia por ahi, y fueron tomados de un tema que anda rondando por ahi (No me acuerdo cual).<?xml version='1.0' encoding='UTF-8'?> <library> <book id="1"> <title>Fahrenheit 451</title> <author>R. Bradbury</author> <publisher>Del Rey</publisher> </book> <book id="2"> <title>The Silmarillion</title> <author>J.R.R. Tolkien</author> <publisher>G. Allen Unwin</publisher> </book> <book id="3"> <title>1984</title> <author>G. Orwell</author> <publisher>Signet</publisher> </book> <book id="4"> <title>Frankenstein</title> <author>M. Shelley</author> <publisher>Bedford</publisher> </book> <book id="5"> <title>The Moon Is a Harsh Mistress</title> <author>R. A. Heinlein</author> <publisher>Orb</publisher> </book> </library> xD Solo dando a entender que no es mio. Última edición por Ronruby; 27/09/2008 a las 07:36 |