When using file_get_contents
or similar function to open a URL you should specify the full protocol to tell PHP this is web address or external file not a local file.
Therefore,
file_get_contents('www.google.com')
Should be changed to:
file_get_contents('http://www.google.com');