Get full website URL?
This question already has an answer here:
What about this?
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
Note that you could also do:
$actual_link = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
Original answer: https://stackoverflow.com/a/6768831/3150271
链接地址: http://www.djcxy.com/p/42284.html上一篇: 在php中读取URL
下一篇: 获取完整的网站网址?