Link to home
Create AccountLog in
Avatar of pmsguy
pmsguy

asked on

Display google results in my website

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.
SOLUTION
Avatar of virmaior
virmaior
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of pmsguy
pmsguy

ASKER

Whatever is the most optimal solution.
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.

SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.