Are you looking for $_SERVER['SERVER_NAME'] ?
You can echo all the super globals.
<?php
echo '<pre>';
print_r($_SERVER[]);
echo '</pre>';
?>
But what @okneloper said is correct.