'; $xml .='Voiture Pour Lui : actu auto'; $xml .='http://www.voiturepourlui.com'; $xml .='un nouveau concept de site automobile : melange actu automobile et mode masculine'; $xml .='presse@voiturepourlui.com'; $xml .='fr'; $xml .='VPL'; $xml .='Voiturepourlui.com'; while ($msg_data = mysql_fetch_array($result)) { $dat = $msg_data['article_date']; $id = $msg_data['article_id']; $titre = $msg_data['article_title']; $text1 = $msg_data['intro']; $url = $msg_data['url']; $titre = str_replace("
","
",$titre); $titre = str_replace("&","&",$titre); $titre = str_replace("<","<",$titre); $titre = str_replace(">",">",$titre); $titre = str_replace("'"," ",$titre); $titre = str_replace("è","e",$titre); $titre = str_replace("é","e",$titre); $titre = str_replace("ê","e",$titre); $titre = str_replace("ë","e",$titre); $titre = str_replace("à","a",$titre); $titre = str_replace("ù","e",$titre); $titre = str_replace(":"," ",$titre); $titre = str_replace("’"," ",$titre); $titre = str_replace("…"," ",$titre); $titre = str_replace("«"," ",$titre); $titre = str_replace("»"," ",$titre); $titre = str_replace("€","e",$titre); $marque = $msg_data['article_marque']; $modele = $msg_data['article_modele']; $text1 = str_replace("
","
",$text1); $text1 = str_replace("&","et",$text1); $text1 = str_replace("<","<",$text1); $text1 = str_replace(">",">",$text1); $text1 = str_replace("'"," ",$text1); $text1 = str_replace("è","e",$text1); $text1 = str_replace("é","e",$text1); $text1 = str_replace("ê","e",$text1); $text1 = str_replace("ë","e",$text1); $text1 = str_replace("à","a",$text1); $text1 = str_replace("ù","e",$text1); $text1 = str_replace(":"," ",$text1); $text1 = str_replace("’"," ",$text1); $text1 = str_replace("…"," ",$text1); $text1 = str_replace("«"," ",$text1); $text1= str_replace("»"," ",$text1); $text1 = str_replace("€","e",$text1); $text1 = str_replace("ç","c",$text1); $text1 = str_replace("é","e",$text1); $text1 = substr($text1, 0, 250); $xml .=''; $xml .=''.$msg_data['article_journaliste'].''; $xml .=''.$titre.''; $xml .=''; $xml .=' http://www.voiturepourlui.com/image-theme/logo-voiture-pour-lui.png '; $xml .=' http://www.voiturepourlui.com '; $xml .=' '; $xml .='http://www.voiturepourlui.com'.$url.''; $xml .=''.$dat.' GMT'; $xml .=''.$dat.' GMT'; $xml .='http://www.voiturepourlui.com'.$url.''; $xml .=''; $xml .= $text1.'...'; $xml .=''; } $xml .='
'; echo $xml; $fichier = "rss.xml"; if($fp = fopen($fichier,"w+")){ fputs($fp,$xml); fclose($fp); } ?>