php教程 跳轉函數 與獲取當前頁面的url地址
function url_this(){
$url = "http://".$_server ["http_host"].$_server["request_uri"];
$return_url = "<a href='$url'>$url</a>";
return $return_url;
}
//跳轉函數
function url_redirect($url,$delay=''){
if($delay == ''){
echo "<script>window.location.href='$url'</script>";
}else{
echo "<meta http-equiv='refresh' content='$delay;url=$url' />";
}
}
} //end func