I want source code of user's entered URL page. We can get it using file_get_contents.
But while using file_get_contents it gives:
Warning: file_get_contents(http://www.google.com): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /var/www/html/scrap/yelp/simple_html_dom.php on line 75
If I open same url from browser, it opens correctly. How google people get that I have made query using file_get_content or from browser?
Update: I tried with curl also, but still same error