public function getWithUriFallback()
    {
        if (($get = $this->export()) !== null) {
            // Host defined by the Host directive
            return $get;
        } elseif ($this->base !== $this->effective &&
            parse_url($this->base, PHP_URL_HOST) === ($host = parse_url($this->effective, PHP_URL_HOST))
        ) {
            // Host is the same, but Scheme or Port is different
            return getservbyname($scheme = parse_url($this->effective, PHP_URL_SCHEME), 'tcp') === parse_url($this->effective, PHP_URL_PORT) ? $scheme . '://' . $host : $this->effective;
        }
        // Return Host name only
        return parse_url($this->effective, PHP_URL_HOST);
    }
public function getWithUriFallback()
    {
        if (($get = $this->export()) !== null) {
            // Host defined by the Host directive
            return $get;
        } elseif ($this->base !== $this->effective &&
            parse_url($this->base, PHP_URL_HOST) === ($host = parse_url($this->effective, PHP_URL_HOST))
        ) {
            // Host is the same, but Scheme or Port is different
            return getservbyname($scheme = parse_url($this->effective, PHP_URL_SCHEME), 'tcp') === parse_url($this->effective, PHP_URL_PORT) ? $scheme . '://' . $host : $this->effective;
        }
        // Return Host name only
        return parse_url($this->effective, PHP_URL_HOST);
    }
public function getWithUriFallback ( ) { if ( ( $ get = $ this -> export ( ) ) !== null ) { // Host defined by the Host directive return $ get ; } elseif ( $ this -> base !== $ this -> effective && parse_url ( $ this -> base , PHP_URL_HOST ) === ( $ host = parse_url ( $ this -> effective , PHP_URL_HOST ) ) ) { // Host is the same, but Scheme or Port is different return getservbyname ( $ scheme = parse_url ( $ this -> effective , PHP_URL_SCHEME ) , 'tcp' ) === parse_url ( $ this -> effective , PHP_URL_PORT ) ? $ scheme . '://' . $ host : $ this -> effective ; } // Return Host name only return parse_url ( $ this -> effective , PHP_URL_HOST ) ; }
Get Host, falls back to Effective Request URI if not found

@return string
Get Host falls back to Effective Request URI if not found