DEV Community

CHENG QIAN
CHENG QIAN

Posted on

tp5获取网站的域名host带http

$http = (isHTTPS() == true ? "https://" : "http://") . $_SERVER['HTTP_HOST'];
//获得   https://www.mantools.top

Enter fullscreen mode Exit fullscreen mode

Top comments (0)