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
Post a Comment