PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Coding & Tutorials (http://www.phpdig.net/forum/forumdisplay.php?f=31)
-   -   How to use PHP include to include the Google result pages? (http://www.phpdig.net/forum/showthread.php?t=362)

sid 01-07-2004 03:29 AM

How to use PHP include to include the Google result pages?
 
I'm not a php expert, but heres something, you'll get the idea when you read the code:
PHP 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 04:53 AM

Hi. Your request violates the Google TOS. 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, or if you wish to develop your own Google applications, visit here.


All times are GMT -8. The time now is 08:49 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.