En voyant Fr1zZz faire un feed RSS, j'ai eu envie de faire là meme chose pour mon site. Or, j'ai un petit problème quand on essaye d'y acceder :
http://www.nounours.ca/rss.php
Il n'a pas la forme d'une feed RSS normal en XML, pourtant, mon code à l'air ok :
Code :
<?
include("Library.inc");
$result = mysql_query("Select * From tblnews Where Affiche Like 'on' Order By ID DESC LIMIT 10");
echo '<?xml version="1.0" encoding="iso-8859-1" ?>'
?>
<rss version="2.0">
<channel>
<title>Nounours.Ca Mettez un nounours dans votre vie !</title>
<link>http://www.nounours.ca/</link>
<description>Nounours.Ca</description>
<managingEditor>monrake@nounours.ca</managingEditor>
<webMaster>monrake@nounours.ca</webMaster>
<language>fr</language>
<image>
<title>Nounours.Ca Mettez un nounours dans votre vie !</title>
<url>http://www.nounours.ca/images/nounours.gif</url>
<link>http://www.nounours.ca//</link>
<width>94</width>
<height>70</height>
</image>
<?
While ($val = mysql_fetch_array($result)){
?>
<item>
<?
echo "<title>".stripslashes($val["Titre"])."</title>";
echo "<link>http://www.nounours.ca/news.php?IDNews=".$val["ID"]."</link>";
echo "<description>".stripslashes($val["TCourt"])."</description>";
//echo "<pubDate>".$val["Date"]." ".$val["Heure"]."</pubDate>";
echo "<guid>http://www.nounours.ca/news.php?IDNews=".$val["ID"]."</guid>";
?>
</item>
<?
}
?>
</channel>
</rss>
Une petite idée du problème ?