$_SERVER["HTTP_HOST"]

$_SERVER["HTTP_HOST"]访问的网站的域名
原文地址:https://www.cnblogs.com/xiaobiaomei/p/8073257.html