 <p>See</p> <p><code>$_SERVER['HTTP_HOST']</code></p> <p>More verbose <a href="http://php.net/manual/en/reserved.variables.server.php" rel="nofollow">http://php.net/manual/en/reserved.variables.server.php</a></p>