PDA

View Full Version : How to use PHP include to include the Google result pages?


sid
01-07-2004, 04:29 AM
I'm not a php expert, but heres something, you'll get the idea when you read the code:
<?php
include("http://www.google.com/search?q=$query_string");
?>

so as an example, in a page like seek.php?query_string=query the "query_string" is "query" , I want the "query" to be taken from seek.php and to be applied as http://www.google.com/search?q=query and then get displayed back in http://www.example-domain.com/seek.php?query_string=query .
but by the php include code, that doesn't seem to work :(

Any help would be appreciated.
thanks in advance

Charter
01-07-2004, 05:53 AM
Hi. Your request violates the Google TOS (http://www.google.com/terms_of_service.html). Specifically, "[y]ou may not take the results from a Google search and reformat and display them, or mirror the Google home page or results pages on your Web site." If you wish to place a Google search box on your site, visit here (http://www.google.com/searchcode.html), or if you wish to develop your own Google applications, visit here (http://www.google.com/apis/).