Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/11/2010, 18:11
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: Url actual php

... y a eso sumarle "http://".

Código PHP:
Ver original
  1. $host  = $_SERVER['HTTP_HOST'];
  2. $uri  = rtrim(dirname(dirname($_SERVER['PHP_SELF'])), '/\\');
  3. $base = "http://" . $host . $uri . "/";