Accueil du forum » (X)HTML / CSS » Informations
________________
Carpe Diem
________________
Fabrice FOURNET (SARL CREATIVE ONLINE)
Statut:
Administrateur/Webmaster
Y a des jours comme ça mdr
________________
Carpe Diem

________________
Carpe Diem
<?
#AFP
function lit_xml($fichier,$item,$champs) {
if($chaine = @implode("",@file($fichier))) {
$tmp = preg_split("/<\/?".$item.">/",$chaine);
for($i=1;$i<sizeof($tmp)-1;$i+=1)
foreach($champs as $champ) {
$tmp2 = preg_split("/<\/?".$champ.">/",$tmp[$i]);
$tmp3[$i-1][] = utf8_decode(@$tmp2[1]);
}
return $tmp3;
}
}
$url = "http://www.afp.com/francais/rss/stories.xml";
$xml = lit_xml($url,"item",array("title","link","description"));
foreach($xml as $row) {
echo "<a href=\"".$row[1]."\" target=\"_blank\">".$row[0]."</a>\n\n".$row[2]."\n\n";
}
?>
________________
Fabrice FOURNET (SARL CREATIVE ONLINE)
Statut:
Administrateur/Webmaster
- Les conditions générales d'utilisation du site
| Sujet | Forum |
|---|---|
Sujet posté par mixed3d le 20/08/2008 à 13h24'45 |
![]() |
Sujet posté par mixed3d le 20/08/2008 à 13h22'22 |
![]() |
Sujet posté par suncilia le 20/08/2008 à 11h14'31 |
![]() |
Sujet posté par fulgoni le 19/08/2008 à 20h44'31 |
![]() |
Sujet posté par 1cyril le 19/08/2008 à 20h35'35 |
![]() |
Sujet posté par rer le 19/08/2008 à 17h10'50 |
![]() |
Réponse postée par 1cyril le 18/08/2008 à 16h13'15 |
![]() |
Sujet posté par maxi le 18/08/2008 à 16h03'41 |
![]() |
Réponse postée par reymysterio2a le 10/08/2008 à 13h01'15 |
![]() |
Sujet posté par numaa le 08/08/2008 à 22h54'42 |
![]() |