//获得当前的脚本网址 functionGetCurUrl(){ if(!empty($_SERVER["REQUEST_URI"])){ $scriptName=$_SERVER["REQUEST_URI"]; $nowurl=$scriptName; }else{ $scriptName=$_SERVER["PHP_SELF"]; if(empty($_SERVER["QUERY_STRING"]))$nowurl=$scriptName; else$nowurl=$scriptName."?".$_SERVER["QUERY_STRING"]; } return$nowurl; }
原文链接:https://www.f2er.com/php/29815.html