获取当前URL [英] getting current URL
本文介绍了获取当前URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下代码来获取当前URL
I am using following code to get the current URL
$current_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
还有其他方法可以获取相同的URL,或者可能是获取当前URL的更好方法?
Is there any other way to get the same, or may be better way to get current URL?
谢谢.
推荐答案
查看全文