Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/08/2010, 20:02
Avatar de truman_truman
truman_truman
 
Fecha de Ingreso: febrero-2010
Ubicación: /home/user
Mensajes: 1.341
Antigüedad: 15 años, 1 mes
Puntos: 177
Respuesta: obtener url actual

Código PHP:
Ver original
  1. function averiguaUrl() {
  2.  $protocolo = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; // Se extrae el protocolo (http o https)
  3.  return $protocolo.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; // Se devuelve la URL completa
  4. }
__________________
la la la