Les Vidéos de CELEBRITESalizee nue
$tmp = preg_split("/<\/?".$item.">/",$chaine); // pour chaque for($i=1;$i foreach($champs as $champ) { $tmp2 = preg_split("/<\/?".$champ.">/",$tmp[$i]); // on ajoute au tableau $tmp3[$i-1][] = @$tmp2[1]; } // et on retourne le tableau return $tmp3; } } // Lien xml $xml = lit_xml("http://www.videos-de-celebrites.com/xml/xml.php?flux=4","item",array("id", "star", "typestar", "description", "numvideo", "bigpic", "thumbs1", "thumbs2", "thumbs3", "thumbs4", "thumbs5", "thumbs6", "thumbs7", "thumbs8", "thumbs9")); foreach($xml as $row) { $row[1] = addslashes($row[1]); //star $row[2] = addslashes($row[2]); //typestar // $row[3] = addslashes($row[3]); //description $row[5] = addslashes($row[5]); $row[6] = addslashes($row[6]); $row[7] = addslashes($row[7]); $row[9] = addslashes($row[9]); $row[10] = addslashes($row[10]); $row[12] = addslashes($row[12]); $row[14] = addslashes($row[14]); $row[1] = trim("$row[1]"); $star_url = str_replace(" ", "-", "$row[1]"); $star_url = str_replace("'", "-", "$star_url"); $star_url = strtolower("$star_url"); $row[2] = trim("$row[2]"); $typestar_url = str_replace(" ", "-", "$row[2]"); $typestar_url = str_replace("'", "-", "$typestar_url"); $typestar_url = strtolower("$typestar_url"); echo "
$row[1]
\"$row[1]\"

$row[3]




"; } ?>