public static function sendHeader($header, $replace = true)
    {
        // don't send header in CLI mode
        if (!Common::isPhpCliMode() and !headers_sent()) {
            header($header, $replace);
        }
    }
public static function sendHeader($header, $replace = true)
    {
        // don't send header in CLI mode
        if (!Common::isPhpCliMode() and !headers_sent()) {
            header($header, $replace);
        }
    }
public static function sendHeader ( $ header , $ replace = true ) { // don't send header in CLI mode if ( ! Common :: isPhpCliMode ( ) and ! headers_sent ( ) ) { header ( $ header , $ replace ) ; } }
Sets outgoing header.

@param string $header The header.
@param bool $replace Whether to replace existing or not.
Sets outgoing header .