Hi y'all,
I want to extract data from Google in a specific search.
But when I use
I get the error:PHP Code:$filename = "http://www.google.com/search?hl=en&q=$somequery";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
echo $contents;
Warning: fopen("http://www.google.com/search?hl=en&q=(somequery)", "r") - No error in c:\apache\htdocs\intranet\revision_a\getdata.php on line 100
Warning: stat failed for http://www.google.com/search?hl=en&q=(somequery) (errno=2 - No such file or directory) in c:\apache\htdocs\intranet\revision_a\getdata.php on line 101
![]()




Reply With Quote