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

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

WBOY
Release: 2016-06-13 10:11:31
Original
892 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template