I would like to ask you if you could help me with this script. I want to have a count in it that it will take not one but 10 news lines.
I hope to hear from you soon
<?php
echo "<B>Financieƫl dagblad</B><BR><table><tr><td>";
if(!($myFile=fopen("http://hfd.bvdep.com/Nieuwsdienst.asp","r")))
{
echo "The news interface is down for maintenance.";
exit;
}
while(!feof($myFile))
{
$myLine.=fgets($myFile,256);
}
fclose($myFile);
$start='<tr><td class="tekstregulargrey">';
$end='</a></td></tr>';
$start_position=strpos($myLine, $start);
$end_position=strpos($myLine, $end)+strlen($end);
$length=$end_position-$start_position;
$myLine=substr($myLine, $start_position, $length);
echo $myLine;
echo "</tr></table></font>";
?>