.css" rel="stylesheet"> Mole Invasion title=$g_title; $current_news->pubdate=strtotime($g_pubdate); $current_news->link=preg_replace("/^.*#/","",$g_link); $current_news->desc=$g_desc; $all_news[]=$current_news; $g_title=$g_pubdate=$g_link=$g_desc=""; } // printf("read=%s
",$g_value); // printf("-> endElement=%s
",$name); $g_value=""; } function characterData($parser, $data) { global $g_value; $g_value.=$data; } /* fichier XML */ if (!($fp = @fopen("moleinvasion.rss", "r"))) { die(); } $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); /**/ $total_data=""; while ($data = fread($fp, 4096)) { $total_data .= $data; if(feof($fp)) break; } fclose($fp); if (!xml_parse($xml_parser, $total_data, 1)) { printf("XML error: %s at line %d
", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser)); continue; } xml_parser_free($xml_parser); ?>
Mole Invasion
Screenshots
Download
Forum
Wiki
rss \n"); printf("
%s
\n",$news->link,$news->title); $this_date = $jour[date('w', $news->pubdate)] . date(' d ', $news->pubdate) . $mois[date('n', $news->pubdate)] . date(' Y', $news->pubdate); printf("
%s
\n",$this_date); printf("
%s
\n",$news->desc); } ?>

Valid HTML 4.01 Transitional