Новости"; require_once('newsreader.php'); $maxcount=25; $template='

{date}

{title}

'; $xml_parser = xml_parser_create("UTF-8"); $rss_parser = new RSSParser($maxcount,$template); xml_set_object($xml_parser, $rss_parser); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); $fp = fopen("http://www.livejournal.com/users/ivan-bormotov/data/rss", "r") or die("Error reading RSS data!"); while($data = fread($fp, 4096)) { xml_parse($xml_parser, $data, feof($fp)) or die("Error parsing RSS data!"); } fclose($fp); xml_parser_free($xml_parser); require_once('footer.php'); ?>