Is there anything wrong with this code?
<?
$url = ("http://www.google.com/");
//START PRINT URL
$fp = fopen ("$url", "r");
if (!$fp)
{
echo "$errstr ($errno)<br>\n";
}
else
{
fputs ($fp, "GET / HTTP/1.0\r\n\r\n");
while (!feof($fp)) {
echo fgets ($fp,50000);
}
fclose ($fp);
}
//END PRINT URL
?>
I've tried it with other urls and it works fine but with google it stops every time at the same point. Is it the code or something on Google's page?
Thanks in advance.