sysvar.php

echo $HTTP_SERVER_VARS['HTTP_HOST']; 
o anche solo
echo $HTTP_HOST;