src/Neuron/URLBuilder.php
private static function guessAbsoluteURL () {
        $scheme = 'http';
        $host = 'localhost';

        if (isset($_SERVER['REQUEST_SCHEME'])) {
            $scheme = $_SERVER['REQUEST_SCHEME'];
        }

        if (isset($_SERVER['HTTP_HOST'])) {
            $host = $_SERVER['HTTP_HOST'];
        }

        return $scheme . '://' . $host . '/';
    }
private static function guessAbsoluteURL () {
        $scheme = 'http';
        $host = 'localhost';

        if (isset($_SERVER['REQUEST_SCHEME'])) {
            $scheme = $_SERVER['REQUEST_SCHEME'];
        }

        if (isset($_SERVER['HTTP_HOST'])) {
            $host = $_SERVER['HTTP_HOST'];
        }

        return $scheme . '://' . $host . '/';
    }
private static function guessAbsoluteURL ( ) { $ scheme = 'http' ; $ host = 'localhost' ; if ( isset ( $ _SERVER [ 'REQUEST_SCHEME' ] ) ) { $ scheme = $ _SERVER [ 'REQUEST_SCHEME' ] ; } if ( isset ( $ _SERVER [ 'HTTP_HOST' ] ) ) { $ host = $ _SERVER [ 'HTTP_HOST' ] ; } return $ scheme . '://' . $ host . '/' ; }
Guest absolute url from server variables.
@return string
Guest absolute url from server variables .