Skip to content

Instantly share code, notes, and snippets.

@xabikip
Last active September 21, 2015 13:40
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 xabikip/8b50ec9fdc1664ff2499 to your computer and use it in GitHub Desktop.
Save xabikip/8b50ec9fdc1664ff2499 to your computer and use it in GitHub Desktop.
Obtener URL actual
<?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