Created
December 5, 2019 12:18
-
-
Save ClaudioVarandas/7d3d0c9e9d445645ed0e720a8b9fd7f4 to your computer and use it in GitHub Desktop.
PHP Full url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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