您现在的位置是:网站首页> 编程资料编程资料
多种语言下获取当前页完整URL及其参数_其它综合_
2023-05-27
1280人已围观
简介 多种语言下获取当前页完整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
%>
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
%>