php
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http";
$domain = $_SERVER['HTTP_HOST'];
$path = $_SERVER['REQUEST_URI'];
$fullURL = $protocol . "://" . $domain . $path;
echo $fullURL;
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-