I'm using get_headers()
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:
http://steve-emachine/WEBSITES_PHP/Sites/HOGSMILL/index.php
...where 'steve-emachine' is my machine name. Is there any way to use get_headers()
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.