Project Help Wanted
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
Minimize the cost of deploying database applications. Advantage Database Server or Microsoft SQL Server – Which One is Right for You? Learn now!
  #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,294 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 43 m 23 sec
Reputation Power: 101
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

Reply With Quote
  #3  
Old March 5th, 2002, 08:15 AM
binky's Avatar
binky binky is offline
Gerbil
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: In a Rotastak
Posts: 1,763 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: 22 h 12 m 52 sec
Reputation Power: 18
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!
__________________
- Sorted!

www.ppfuk.com - Free Photo Sharing

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?


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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

CIO Insight




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway