Skip to content

Instantly share code, notes, and snippets.

@ClaudioVarandas
Created December 5, 2019 12:18
Show Gist options
  • Save ClaudioVarandas/7d3d0c9e9d445645ed0e720a8b9fd7f4 to your computer and use it in GitHub Desktop.
Save ClaudioVarandas/7d3d0c9e9d445645ed0e720a8b9fd7f4 to your computer and use it in GitHub Desktop.
PHP Full url
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment