Solved

Display google results in my website

Posted on 2008-06-17
6
592 Views
Last Modified: 2013-12-08
I want to dislay the google results in my website.  
I am running PHP and want to dynamically display the google search engine results in my webpage.
The google results I assume will be displayed in a frame on my webpage.

For example, I have the query http://news.google.com/news?hl=en&ned=us&q=aflcio and I want the resulting data displayed on my website.
0
Comment
Question by:pmsguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 20

Assisted Solution

by:virmaior
virmaior earned 150 total points
ID: 21806041
meaning you want to display that page in a iframe or you want to curl the data into your own web page?
0
 

Author Comment

by:pmsguy
ID: 21806711
Whatever is the most optimal solution.
0
 
LVL 20

Expert Comment

by:virmaior
ID: 21806748
in this case, the choice isn't about optimization.  They are substantially different ways of doing this with significant trade-offs.

For an IFRAME, it's going to be obvious that you are just putting google in an IFRAME.  and you won't be able to control anything about it.

For curl, google probably won't appreciate it.

a third option is that google has a search API that you can use, but I believe they charge to use it for any commercial purpose.

0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 18

Assisted Solution

by:Matthew Kelly
Matthew Kelly earned 150 total points
ID: 21807806
I have used this script before:

http://www.digitalpoint.com/tools/search/

It is well documented, simple, and lets you put google results in your own website, formatted the way you want. Try it out!
0
 
LVL 18

Expert Comment

by:Matthew Kelly
ID: 21807809
0
 
LVL 31

Accepted Solution

by:
gwkg earned 200 total points
ID: 21809279
Simply grab an RSS feed of your search

http://news.google.com/news?q=aflcio&output=rss

Google RSS Feed info: http://www.google.com/support/news/bin/answer.py?hl=en&answer=59255

Search Google for RSS PHP if you need more info on how to display the XML data in PHP.  There are a lot of libraries out there.

Here is one way to do it. http://www.ibm.com/developerworks/xml/library/x-phprss/index.html
And another: http://rssphp.net/
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question