Hi there
I am using this code on my sites but the rss dont show up on my php sites, can you see anything wrong with the code ??
<?php
function parse_rss1($f) {
error_reporting(16);
$xmlfile = fopen($f, 'r');
if (!$xmlfile) return('RSS Feed down');
$readfile = fread($xmlfile ,80000);
$parsefile = eregi("<item>(.*)</item>", $readfile ,$arrayreg);
$filechunks = explode("<item>", $arrayreg[0]);
$count = count($filechunks);
echo '<font face=verdana>';
for($i=1 ; $i<=$count-1 ;$i++) {
ereg("<title>(.*)</title>",$filechunks[$i], $title);
ereg("<link>(.*)</link>",$filechunks[$i], $links);
ereg("<description>(.*)</description>",$filechunks[$i], $description);
echo str_replace('hxaxh','a',"<font style='font-size: 12px;'><hxaxh target=_blank href ='$links[1]'\>".utf8_decode($title[1])."</hxaxh></font>");
echo "<br><font color=gray style='font-size: 10px;'>".utf8_decode($description[1])."</font><BR>";
}
}
//
$xmlfeed = 'http://www.somehost.com/feed.xml';
parse_rss1($xmlfeed);
?>
