Ciao.
$_SERVER['localhost']
metti
$_SERVER['HTTP_HOST']