Project Help Wanted
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherProject Help Wanted

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 4th, 2002, 08:15 AM
LauraF LauraF is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Ireland
Posts: 3 LauraF User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Piggyback Google?

Hello all!
Does anyone of you know how I can "piggyback" google for my site?
Is there code out there for this or is it just a matter of linking up to them and hiding their icon (clueless about this also!)?

I'm told that this is really simple to do but am unable to find out anything about it!
Any help would be greatly appreciated by my dumb-***!

By-the-by, this site will never be public so the google bods won't be wronged.

Reply With Quote
  #2  
Old March 4th, 2002, 12:37 PM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,317 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 5 h 42 m 28 sec
Reputation Power: 109
Send a message via ICQ to christo Send a message via Yahoo to christo
This might help

I think I know what you mean... so paste this code into your page:

<center>
<FORM method=GET action="http://www.google.com/search">
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=25 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
</td></tr></TABLE>
</FORM>
</center>

if you don't like the logo image, you can choose a different one from http://www.google.com/stickers.html.

Don't worry about 'wronging' anyone, Google take traffic wherever it comes from and encourage site owners to host their search box.

Btw, you have the same name as my twin sister -

Christo
__________________
This is me: http://chris.uk.com

Reply With Quote
  #3  
Old March 5th, 2002, 08:15 AM
binky's Avatar
binky binky is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: New Zealand
Posts: 1,774 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 58 m 15 sec
Reputation Power: 23
The thing is pretty simple for a normal search:

Just change the browser location to:

http://www.google.com/search?hl=en&q=[*]&btnG=Google+Search

and replace[*] with the escaped search term. For example:

http://www.google.com/search?hl=en&...G=Google+Search

that'll call the page with search results. Now you need to read the output of that into an array using php:

$file = file("http://www.google.com/search?hl=en&q=find+me+some+food&btnG=Google+Search");

and parse it using:

while (list ($line_num, $line) = each ($file)) {

}

what you're after is from the first line that starts with a <p> tag to the start of the last line that starts with a <p> tag. Then put this in your page and you should get the Google without the Google. It may need a bit of tidying up though!
__________________
Smartfone Warehouse

Reply With Quote
  #4  
Old March 5th, 2002, 01:04 PM
LauraF LauraF is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Ireland
Posts: 3 LauraF User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

Much obliged for your answers.

I'll try it out tomorrow and let you know.

Thanks again,

Laura

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherProject Help Wanted > Piggyback Google?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap