The author has 1 post.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
1045 0
【php】php获得当前地址,不含#后面的内容
产品的注销
初入江湖 七级
Reply
Floor 1 Posted at: 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++;
}
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 1045 Replies: 0
Author: 产品的注销
Last reply: 产品的注销
Last reply time: 1/2/11 22:44
Bar Good Posts
Announcements