Home >Backend Development >PHP Tutorial >PHP jump function and getting the URL address of the current page_PHP tutorial
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