1. if(getenv(QUERY_STRING)){
  2.         $gquery = "?".getenv(QUERY_STRING);
  3. }else{
  4.         $gquery = "";
  5. }
  6. $now_url = urlencode("http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].$gquery);



출처 : 어느 블로그인지 잊어 버렸어요.

+ Recent posts