защо не ми изкарва всички новини, а само 3 или 5?
Код:
<?php
$xmlfile = fopen("http://www.ipo.bg/RSS.aspx?type=4", "r");
if(!$xmlfile)die("cannot open the xml file");
$readfile = fread($xmlfile ,40000);
$searchfile = eregi("<item>(.*)</item>", $readfile ,$arrayreg);
$filechunks = explode("<item>", $arrayreg[0]);
$count = count($filechunks);
for($b=1 ; $b<=$count-1 ;$b++)
{
ereg("<title>(.*)</title>",$filechunks[$b], $title);
ereg("<link>(.*)</link>",$filechunks[$b], $links);
ereg("<description>(.*)</description>",$filechunks[$b],$desc);
?>
<tr><td Mtyle='padding: 3px'><table width=100% cellspacing=0 cellpadding=0 border=0 class=bottom><tr><td class=bottom width=9><a href="javascript: showit('fm<?=$b?>')"><img border=0 width=9 height=9 src=pic/plus.gif id="pic2" alt="скриване / показване" title="скриване / показване на новината"></A></td><td class=bottom width=5> </td><td align=left class=bottom><a class=forum href="javascript: showit('fm<?=$b?>')"><B><?=$title[1]?></B></a> </td><td align=right class=bottom></td></tr></table><font id="fm<?=$b?>" style="display: none;"><br><?=$desc[1]?><br /><br /><font size="-4">Повече за тази новина: <a href="<?=$links[1]?>">тук</a>!</font></div></td></tr>
<?
}
?>