多种语言下获取当前页完整URL及其参数

PHP如何获取当前页完整URL及其参数 

echo 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]."
";
echo $_SERVER['SERVER_NAME']."
";//  cike.org
echo $_SERVER["SERVER_PORT"]."
";//  8080
echo $_SERVER["REQUEST_URI"]."
";//  /index.php?id=2
?>

ASP 如何获取当前页完整URL及其参数 

<%
url=Request.ServerVariables("server_name")&Request.ServerVariables("path_info")
url=Request.ServerVariables("server_name") '  cike.org
url2=Request.ServerVariables("path_info") '  /index.asp
%>

你可能感兴趣的:(多种语言下获取当前页完整URL及其参数)