Last active
September 21, 2015 13:40
-
-
Save xabikip/8b50ec9fdc1664ff2499 to your computer and use it in GitHub Desktop.
Obtener URL actual
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
<?php | |
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; | |
$url_with_port = "http://".$_SERVER['HTTP_HOST'].":".$_SERVER['SERVER_PORT'].$_SERVER['REQUEST_URI']; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment