title: How to avoid file_get_contents error: "Couldn't resolve host name"
body: <p>I succesfully fetch websites with </p>
  
  <pre><code>file_get_contents("http://www.site.com");
  </code></pre>
  
  <p>However, if the url doesn't exist, or not reachable, I am getting</p>
  
  <pre><code>Warning: file_get_contents(http://www.site.com) [function.file-get-contents]: 
  failed to open stream: operation failed in /home/track/public_html/site.php 
  on line 773
  </code></pre>
  
  <p>Is it possible to <code>echo "Site not reachable";</code> instead of the error ?</p>