La communauté ALL HTML c'est 58009 membres à ce jour dont 1 inscrits aujourd'hui et 30 depuis une semaine.
Retrouvez les publications relatives à ces discussions dans nos rubriques MATHML, WML, XML, XSL.
liste des forums liste des discussions Participer à la discussion
Message publié le lundi 17 décembre 2007 à 20 h 26 par Terence.
<image>
<title>Logo</title>
<url>mon_lien.jpg</url>
<link>le_lien.html</link>
</image>
Message publié le lundi 17 décembre 2007 à 21 h 06 par mofoda.
<?php
$xml = '<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0">';
$xml .= '<channel>';
$xml .= '<title>Titre ici</title>';
$xml .= '<link>http://www.domaine.com</link>';
$xml .= '<description>Description</description>';
$xml .= '<copyright>© copyright</copyright>';
$xml .= '<language>fr</language>';
$xml .= '<image>';
$xml .= ' <title>titre image</title>';
$xml .= ' <url>http://www.domaine.com/images/image.jpg</url>';
$xml .= ' <link>http://www.domaine_en_lien.com</link>';
$xml .= '</image>';
require ('conf.php');
$res=mysql_query("select * from $table order by date desc");
while($lig=mysql_fetch_array($res)){
$titre=$lig[titre];
$adresse=$lig[id];
$contenu=$lig[chapeau];
$madate=$lig[date];
$datephp=date("D, d M Y H:i:s +0100", strtotime($madate));
$xml .= '<item>';
$xml .= '<title>'.$titre.'</title>';
$xml .= '<link>http://www.domaine.com/'.$adresse.'.html</link>';
$xml .= '<pubDate>'.$datephp.'</pubDate>';
$xml .= '<description>'.$contenu.'</description>';
$xml .= '<guid isPermaLink="false">'.$titre.'</guid>';
$xml .= '</item>';
}//fin du while
$xml .= '</channel>';
$xml .= '</rss>';
$fp = fopen("fichier.xml", 'w+');
fputs($fp, $xml);
fclose($fp);
echo 'Flux RSS mis a jour !<br><a href="fichier.xml">Voir le fichier</a>';
?>
Message publié le mardi 18 décembre 2007 à 12 h 08 par Terence.
<enclosure url="http://domaine/image.jpg" length="1024000" type="image/jpeg" />
liste des forums liste des discussions Participer à la discussion
Vous devez obligatoirement vous identifier en tant que membre pour participer à cette discussion.