Settings | Sign in | Sign up

There is currently 1 post.

【php】php获得当前地址,不含#后面的内容

Floor 1 产品的注销 1/2/11 22:44
$page_address='http://'.$_server/['SERVER_NAME'].$_SERVER['PHP_SELF'];
$j=0;
foreach ($_GET as $i=>$v){
     $page_address.=($j==0)?'?':'&';
     $page_address.=$i.'='.urlencode($v);
     $j++;
}

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.