Tutorials Infos - Anleitungen - Hilfe - Dreamcodes
 

Heise News

Dieses Script zeigt die aktuellen News von Heise an

Script:

<?php
   
print "<span class=\"text2\"><table align=\"center\" border=0 >";

   
$fcontents = join ('', file ('http://www.heise.de/newsticker/heise.rdf'));

   
$fcontents = str_replace ("</item>", "", $fcontents);
   
$fcontents = str_replace ("</link>", "", $fcontents);

   
$splices = explode ("<item>", $fcontents);

   for (
$i = 1; $i < count($splices); $i++){
      
$link = explode("<link>",$splices[$i]);
      
$link[1] = strip_tags($link[1]);
      
$headline = str_replace ("<title>", "<a href=\"" . trim($link[1]) . "\" target=\"_blank\" class=\"heiseheadline\">", $splices[$i]);
      
$headline = str_replace ("</title>", "</a>", $headline);
      
$headline = explode ("<link>", $headline);
      
$headline = $headline[0];
      print
"<tr><td> $headline</td></tr>";
   }
   print
"</table></span>";
?>

 
ID: 336
eingestellt am: 18.03.2004
Autor: Hendrik Walter
Status zum lesen: Gast
gelesen: 8805
Webseite: www.dreamcodes.com
[Drucken]