file get contents - PHP file_get_contents on a Google search? -


i'm trying use php return resultant html of google search.

so instance

<?php $file = file_get_contents('http://www.example.com',false); echo $file; ?> 

will return html contents of example.com. problem is, when try on google search url, e.g., http://www.google.com/#sclient=psy&hl=en&q=cats, returns html main google page , not search results 'cats'.

what's easiest way this?

you want url of form:

http://www.google.com/search?q=cats

the url you're using new "instant search"


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -