PhpDig.net

Go Back   PhpDig.net > General Forums > Coding & Tutorials

Closed Thread
 
Thread Tools
Old 01-07-2004, 04:29 AM   #1
sid
Former Member
 
Join Date: Sep 2003
Posts: 34
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
sid is offline  
Old 01-07-2004, 05:53 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
put 'include' in a table, within an echo, in php jmiter Coding & Tutorials 1 12-27-2005 04:39 AM
show results in an include (php) vuurvos How-to Forum 1 10-05-2005 07:44 AM
include search.php OceanSurf How-to Forum 1 09-08-2004 10:58 AM
A simple include in my php template doesn't appear claudiomet How-to Forum 4 08-23-2004 07:35 AM
Using PHP include in templates sid How-to Forum 3 11-23-2003 07:06 AM


All times are GMT -8. The time now is 12:35 PM.


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