Home >php教程 >php手册 >php 跳转函数 与获取当前页面的URL地址

php 跳转函数 与获取当前页面的URL地址

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:11:31942browse

php教程 跳转函数 与获取当前页面的url地址
    function url_this(){
        $url = "http://".$_server ["http_host"].$_server["request_uri"];
        $return_url = "$url";
        return $return_url;
    }

//跳转函数
function url_redirect($url,$delay=''){
 if($delay == ''){
  echo "<script>window.location.href='$url'</script>";
 }else{
  echo "";
 }

}

} //end func

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn