<?php

$ticker 
'';
$xml file_get_contents("http://newsticker1.gdata.de/dl_shop/rss/rss-outbreak.xml");
$parser xml_parser_create();
xml_parser_set_option($parserXML_OPTION_CASE_FOLDINGfalse);
xml_parser_set_option($parserXML_OPTION_SKIP_WHITEtrue);
xml_parse_into_struct($parser$xml$elements$indexes);
xml_parser_free($parser);

$first_item $indexes['item'][0];
$title_indexes $indexes['title'];
$link_indexes $indexes['link'];

$max 3;
$count 0;

while (
count($title_indexes) && ($count $max)) {
    
$idx_title array_shift($title_indexes);
    
$idx_link array_shift($link_indexes);
    
    if (
$idx_title $first_item) continue;
    if (
$idx_link $first_item) continue;

    
$count++;

    
$ticker .= "<a href='".trim($elements[$idx_link]['value'])."'>";
    
$ticker .= trim($elements[$idx_title]['value']);
    
$ticker .= '</a>&nbsp;&nbsp;&nbsp;';
}

?>
<?php 
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>

<body>
<marquee behavior="scroll" height="15" loop="infinite" scrolldelay="150"
width="350"><?php print $ticker ?></marquee>
</body>
</html>