【www.gdgbn.com--php函数】

    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

本文来源:http://www.gdgbn.com/jiaocheng/28173/