 |
 |
 |
 |
 |
 |
Want to learn more about Sasha Bakhru, and get the lateat news?
|
 |
Email us at !
|
 |
We'll be sure to send you the latest info on Sasha and his projects.
|
 |
',$text);
$text = str_replace('"','"',$text);
$text = str_replace('&','&',$text);
if ($encodage == 'utf-8') {
$text = utf8_decode($text);
}
return $text;
}
function nettoyage($description) {
$avant = array ("''si","''si","''si","'align=\"left\"'si","' 'si");
$apres = array (" "," "," ","align=\"right\""," parsefile('http://news.google.com/news?hl=en&ned=us&ie=UTF-8&q=Stem+Cell&output=rss',10);
if (!$res) {
exit('Fichier rss incorrect ou erreur pendant l\'analyse !');
}
$encode = $rss -> get_encoding();
// on affiche les infos dans un tableau centré
// recupération des données sur le channel
$channel = $rss -> get_channel();
if ($rss -> exist_image()) {
$image = $rss -> get_image();
echo '\n
'."\n"; }
else { echo ''."\n"; }
// nombre d'items
$nbnews = $rss -> get_num_items();
// recup array des données
$items = $rss -> get_items();
// pour affichage des dates au format français
echo "\n";
for($i = 0; $i < $nbnews; $i++) {
echo '- ';
if (trim($items[$i]['pubdate'])!='') {
echo '',clean_date($date),' : ';
}
if (trim($items[$i]['author'])!='') {
echo '',clean_text($items[$i]['author']),' : ';
}
elseif (trim($items[$i]['dc:creator'])!='') {
echo '',clean_text($items[$i]['dc:creator'], $encode),' : ';
}
echo '',clean_text($items[$i]['title'], $encode),'';
if (trim($items[$i]['category']) != '') {
echo '('.clean_text($items[$i]['category']).')'; }
if (trim($items[$i]['description'])!='') {
echo ' :
'.nettoyage(clean_text($items[$i]['description'], $encode));
}
echo " \n";
}
echo " \n";
echo ' | ';
?> |
 |

|
|