title: file_get_contents(): No such host is known error
body: <p>I am using the <code>file_get_contents</code> function to get the URL into a string:</p>
  
  <pre><code>$contents = file_get_contents("http://google.com");
  </code></pre>
  
  <p>But, I am getting the following error:</p>
  
  <blockquote>
    <p>file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: No such host is known.</p>
  </blockquote>
  
  <p>How can I solve this in my localhost?</p>