Skip to content

Instantly share code, notes, and snippets.

@cesarkohl
Created June 7, 2015 20:13
Show Gist options
  • Save cesarkohl/3274ea65c63f56925b25 to your computer and use it in GitHub Desktop.
Save cesarkohl/3274ea65c63f56925b25 to your computer and use it in GitHub Desktop.
Raw PHP to get current URL
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$actual_page = $_SERVER[REQUEST_URI];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment