This script used to work on my other server but now it doesn't. I get an error
Warning: fopen("http://news.google.com/news/gnworldleftnav.html", "r") - No such file or directory in /home/i/n/infinitydesigns/public_html/scripts/google.php on line 26
Warning: fread(): supplied argument is not a valid File-Handle resource in /home/i/n/infinitydesigns/public_html/scripts/google.php on line 27
Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/i/n/infinitydesigns/public_html/scripts/google.php on line 28
the script goes something like
<?php
// VARIABLES
$resultCount = '15'; // number of items displayed
$newsPage = 'http://news.google.com/news/gnworldleftnav.html'; // google news url
$today = date("DM j Y");
$open = fopen($newsPage, "r");
$read = fread($open, 900000);
fclose($open);
preg_match_all("|<a class=y href=\"(.*)\">(.*)</a><BR>\n<font size=-1>\n<b><font color=#6f6f6f>(.*) -</font>|U",$read,$result);
echo '<table width="100%" cellpadding="5" cellspacing="0" bgcolor="#D0CFCA">
<tr>
<td align="left">
<strong><font size="1">';
PRINT "Google world news for $today.";
echo '
</font>
</strong>
</td>
</tr>';
for ($i = 0; $i <= $resultCount; $i++) {
?>
<tr>
<td bgcolor="#E1E1DD"> <font size="1" color="#4D7752"><b><?=$result[3][$i]?></b></font><br>
<strong><a href="<?=$result[1][$i]?>" target="_blank"><?=$result[2][$i]?></a> </strong></td>
</tr>
<tr>
<td height="5" bgcolor="#D0CFCA"> </td>
</tr>
<?
}
?>
Any help would be greatly appreciated. Thanks in advance