title: What is the difference between HTTP_HOST and SERVER_NAME in PHP?
body: <p>What is the difference between <code>$_SERVER['HTTP_HOST']</code> and <code>$_SERVER['SERVER_NAME']</code> in PHP?</p>
  <p>When would you consider using one over the other and why?</p>