public static function getCurrentFullHostString() {

        $hostString = $_SERVER["HTTPS"] ? "https" : "http";
        $hostString .= "://";
        $hostString .= $_SERVER["HTTP_HOST"];
        $hostString .= $_SERVER["SERVER_PORT"] != 80 ? ":" . $_SERVER["SERVER_PORT"] : "";

        return $hostString;


    }
public static function getCurrentFullHostString() {

        $hostString = $_SERVER["HTTPS"] ? "https" : "http";
        $hostString .= "://";
        $hostString .= $_SERVER["HTTP_HOST"];
        $hostString .= $_SERVER["SERVER_PORT"] != 80 ? ":" . $_SERVER["SERVER_PORT"] : "";

        return $hostString;


    }
public static function getCurrentFullHostString ( ) { $ hostString = $ _SERVER [ "HTTPS" ] ? "https" : "http" ; $ hostString .= "://" ; $ hostString .= $ _SERVER [ "HTTP_HOST" ] ; $ hostString .= $ _SERVER [ "SERVER_PORT" ] != 80 ? ":" . $ _SERVER [ "SERVER_PORT" ] : "" ; return $ hostString ; }
Return the current full host string for the current request including protocol and ports etc.
Return the current full host string for the current request including protocol and ports etc .