Comunidad de diseño web y desarrollo en internet online

rss desde php

Citar            
MensajeEscrito el 10 Nov 2008 12:54 pm
Hola,
Tngo un codigo PHP q "supuestament" genera un archivo rss,
el tema es q no me tira ningun error pero no me muestra nada, si miro el codigo de fuente de ente archivo pareciera q lo genero correctamente ,
No se si se entiende aca les dejo el php i el codigo de fuente, desde ya gracias,


Codigo PHP:

Código :

<? include('config.php'); ?>
<?php

header("Content-Type: application/rss+xml"); 
echo("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>");
?>


<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
<channel> 
<title><![CDATA[xxxxxxxx]]></title> 
<link><![CDATA[http://www.xxxxxxx.xxx.xx]]></link> 
<description><![CDATA[aaaaaaaaaa]]></description>
<language>es-es</language> 


<atom:link href="http://www.aaaaaa.com/rss.php" rel="self"
 type="application/rss+xml" />
<ttl>15</ttl> 

<image>
<url>http://www.aaaaaa.com/aaaaaaa.GIF</url>
<title>JuaN</title>
<link>http://www.aaaaaaaaa.com</link>
</image>
<?

include ('config.php'); 
$resultado=mysql_query(" SELECT titulo, descripcion, fecha, url, categoria FROM post where autor = 'aaaaa' " );  
while ($reg = mysql_fetch_array($resultado))
{
echo "<item>
      <title> $reg[titulo] </title>
      <description>$reg[descripcion]</description>
      <category>.$reg[categoria].</category>
      <link>http://juaann.com.ar/$reg[url]</link>
      <pubDate>$reg[fecha]</pubDate>
      </item> ";
}
echo "</rdf:RDF>\n";
?>
</channel>
</rss>


Codigo de fuente:

Código :

<?xml version="1.0" encoding="iso-8859-1"?>

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
<channel> 
<title><![CDATA[xxxxxxxx]]></title> 
<link><![CDATA[http://www.xxxxxxx.xxx.xx]]></link> 
<description><![CDATA[aaaaaaaaaa]]></description>
<language>es-es</language> 


<atom:link href="http://www.aaaaaa.com/rss.php" rel="self"
 type="application/rss+xml" />
<ttl>15</ttl> 


<image>
<url>http://www.aaaaa.com.ar/juaann/juan.GIF</url>
<title>JuaN</title>
<link>http://www.aaaaaaaaa.com.ar</link>
</image>
<item>
      <title> vamoss eh </title>
      <description> ahsoiudhoajshdoluashldkjnbkajsñasiojdlkdkasàpsld`laspdlsadasdokasdnasndnajsndjckjxbchbzkjxncj                                                                                                                                                                                                              </description>
      <category>.Autos.</category>
      <link>http://aaaaaa.com.ar/post/1.php</link>
      <pubDate>06/11/2008 09:09</pubDate>
      </item> <item>
      <title> esta si </title>
      <description>bayusbdyhubashdbasbdhbasbdbashbxashhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhs<br>jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj<br>yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy</description>
      <category>.Autos.</category>
      <link>http://aaaaaaa.com.ar/post/2.php</link>
      <pubDate>06/11/2008 09:12</pubDate>
      </item> <item>
      <title> esta si </title>
      <description>bayusbdyhubashdbasbdhbasbdbashbxashhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhs<br>jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj<br>yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy</description>
      <category>.Autos.</category>
      <link>http://aaaaa.com.ar/post/3.php</link>
      <pubDate>06/11/2008 09:12</pubDate>
      </item> <item>
      <title> siii </title>
      <description> ashdouiasdnmfkds`mogmsdff

<br><br>dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff<br>fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff<br>                                                                                                                       </description>
      <category>.Autos.</category>
      <link>http://juaann.com.ar/post/4.php</link>
      <pubDate>06/11/2008 09:15</pubDate>
      </item> <item>
      <title> aaaaa </title>
      <description> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa                                                                                                                                                                                                                                      </description>
      <category>.Autos.</category>
      <link>http://aaaaaaaaa.com.ar/post/5.php</link>
      <pubDate>06/11/2008 09:17</pubDate>
      </item> <item>
      <title> qqq </title>
      <description>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq<br>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq<br>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq<br>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq<br>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq<br>qqqqq</description>
      <category>.Autos.</category>
      <link>http://aaaa.com.ar/post/6.php</link>
      <pubDate>06/11/2008 09:20</pubDate>
      </item> </rdf:RDF>

</channel>
</rss>

Por juaann

33 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Nov 2008 08:52 pm
metelo en feedburner a ver si esta bien si pasa feedburner creeo q no tendras problemas sino busca en google o espera mas ayuda ;-)

Por talcual

686 de clabLevel



 

Colombia

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.