function url_this(){ $url = "http://".$_server ["http_host"].$_server["request_uri"]; $return_url = "<a href="http://www.php.cn/">; return $return_url; } //跳转函数 function url_redirect($url,$delay=''){ if($delay == ''){ echo "<script>window.location.href="http://www.php.cn/">; }else{//开源代码phpfensi.com echo "<meta http-equiv='refresh' content='$delay;url=$url' />"; } } } //end func