title: PHP get_headers not working on local Apache URLs
body: <p>I'm using <code>get_headers()</code> to see if sites are up or not, and it's all fine, but when I try and check my local sites, I get a 'response timed out' error. The 'local' URLs are not on a 'real' domain, but are something like:</p>
  
  <pre><code>http://steve-emachine/WEBSITES_PHP/Sites/HOGSMILL/index.php
  </code></pre>
  
  <p>...where 'steve-emachine' is my machine name. Is there any way to use <code>get_headers()</code> on this kind of URL? The URLs work fine in a browser, so it's obviously just my ignorance of how HTTP works that is the problem.</p>