Hi Ascaron,
versuch doch mal den folgenden PHP-Code.
Einfach als Datei abspeichern und in deine Seite per include einbauen.
Gruß, Bjoern
PHP-Code:
<?
print "<span class=\"heisenews\">";
$fcontents = join ('', file ('http://www.heise.de/newsticker/heise.rdf'));
$fcontents = str_replace ("</item>", "", $fcontents);
$fcontents = str_replace ("</link>", "", $fcontents);
$splices = explode ("<item>", $fcontents);
//für alle verfügbaren Einträge
//for ($i = 1; $i < count($splices); $i++){
//für 3 Einträge
for ($i = 1; $i < 4; $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 $headline . "<img src=\"images\1.gif\" height=20 width=1 align=top><br>";
}
print "</span>";
?>