I'm trying to make a script fetch searches in Google, but it cannot open the search results. For example:
<?php
$page = file('http://www.google.com/search?num=20&hl=en&safe=off&q="testing+%2Ba+search"&btnG=Google+Search');
if (!$page)
{print "Ooops! Couldn't find the page!"; die;}
else
{$content = join("", $page);}
print "$content";
?>
Why?
Thanks
Luciano ES
Santos, SP - Brasil