che dici??

hai provato a fare phpinfo() e vedere cosa dice?

cmq, prova $_SERVER['HTTP_HOST']