Home >Backend Development >PHP Tutorial >PHP jump function and getting the URL address of the current page_PHP tutorial

PHP jump function and getting the URL address of the current page_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:09:381062browse

php tutorial jump function and getting the url address of the current page
Function url_this(){
$url = "http://".$_server ["http_host"].$_server["request_uri"];
          $return_url = "$url";
         return $return_url;
}

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

}

} //end func

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629735.htmlTechArticlephp tutorial jump function and getting the url address of the current page function url_this(){ $url = http:// .$_server [http_host].$_server[request_uri]; $return_url = a href='$url'$url/a; return $...
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