OK, they appear to be using relative links in their html. So you would need to add this line:
$line = str_replace("ShowNews.asp?", "http://hfd.bvdep.com/ShowNews.asp?", $line);
PHP Code:
<html><head><title>Leach Test</title></head>
<body>
<B>Financieel dagblad</B><BR>
<table>
<?php
$fileArray = file("http://hfd.bvdep.com/Nieuwsdienst.asp");
if ( ! $fileArray ) {
echo '<tr><td>The news interface is down for maintenance.</td></tr>',
'</table></body></html>';
break;
}
$searchStr ='<td class="tekstregulargrey">';
$i = 0;
foreach($fileArray AS $line) {
if ( strstr($line, $searchStr) ) {
$line = str_replace("ShowNews.asp?", "http://hfd.bvdep.com/ShowNews.asp?", $line);
echo $line, "\n";
$i++;
}
if ( $i == 10 ) {
break;
}
}
?>
</table>
</body></html>
Bookmarks