'; $xml .='vs-webzine.com'; $xml .='http://www.vs-webzinecom'; $xml .='Les dernieres nouvelles'; $xml .='webmaster@vs-webzine.com'; $xml .='fr'; $xml .='VS-webzine'; $xml .='Vs-webzine'; $xml .='webmaster@vs-webzine.com'; $result = mysql_query("SELECT id,titre,date,url_image,signature,nom_source FROM MyKronikInfos where valider = ' ' ORDER BY date_verif desc LIMIT 0, 18", $dbi); while(list($id, $titre, $date, $url_image,$signature, $nom_source) = mysql_fetch_row($result)) { $date = substr($date,0,5); $titre = stripslashes(trim($titre)); $news = str_replace("
",'
',$titre); $news = str_replace("&",'&',$titre); $news = str_replace("<","<",$titre); $news = str_replace(">",">",$titre); $xml .=''; $xml .=''.$signature.''; $xml .=''.$titre.''; $xml .='http://www.vs-webzine.com/news.php?page=kronik&id_news='.$id.''; $xml .=''.$date.' GMT'; $xml .='http://www.vs-webzine.com/news.php?page=kronik&id_news='.$id.''; $xml .='http://www.vs-webzine.com/news.php?page=kronik&id_news='.$id.''; $xml .=''; $xml .= 'Lire la chronique sur VS-webzine.com'; $xml .=''; } mysql_close(); $xml .='
'; echo $xml; $fichier2=fopen("rss.xml","w"); fputs($fichier2, $xml); fclose($fichier2); ?>