title: php get_headers a good way to tell if a site is up?
body: <p>I'm still fairly new to php, can you comment on whether the code below is any good to tell if a site is up or down and if it might not be suitable the reasons why and better altneratives?</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>$siteHeader = @get_headers($url , 1);
  if ($siteHeader &gt; 1) {
      $siteUp = true;
  } else {
      $siteUp = false;
  }
  </code></pre>