Ver original$host = $_SERVER['HTTP_HOST'];$uri = rtrim(dirname(dirname($_SERVER['PHP_SELF'])), '/\\');$base = "http://" . $host . $uri . "/";