title: Is there a way to check if a host is up?
body: <p>I'm trying to do this in PHP. I need to check if a specified host is "up"</p>
  
  <p>I thought of pinging the specified host (though I'm not sure how I would, since that would require root. --help here?)</p>
  
  <p>I also though of using <code>fsockopen()</code> to try to connect on a specified port, but that would fail too, if the host wasn't listening for connections on that port.</p>
  
  <p>Additionally, some hosts block ping requests, so how might I get around this? This part isn't a necessity, though, so don't worry about this too much. I realize this one might get tricky.</p>