Skip to content

Instantly share code, notes, and snippets.

@zhoumengkang
Created May 12, 2013 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhoumengkang/5563474 to your computer and use it in GitHub Desktop.
Save zhoumengkang/5563474 to your computer and use it in GitHub Desktop.
PHP获取当前页面的完整地址
$row['url'] = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment