arkadaşlar bir kaç hata alıyorum rica etsem düzeltilmiş hallerini yazarmısınız

Deprecated: Function eregi() is deprecated in classes/dbclass.php on line 36
if(eregi("paging_inc.php",$PHP_SELF)) {
print "

Ooops! Please include this file as a part of a listing script

";
exit;
}


if (ereg("admin", $PHP_SELF)){
$reclimit = $RECORD_LIMIT;

}else



Warning: fopen(http://xxxx/feeds/posts/default) [function.fopen]: failed to open stream: Network is unreachable in get_rss.php on line 103
could not open XML input = http://xxx/feeds/posts/default
Warning: fread() expects parameter 1 to be resource, boolean given in get_rss.php on line 107


$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
if (!($fp = fopen($file, "r"))) {
print("could not open XML input = ".$file);
}

while ($data = fread($fp, 4096)) {
if (!xml_parse($xml_parser, $data, feof($fp))) {
die(sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
}
}
xml_parser_free($xml_parser);

echo "
";