您好,欢迎访问一九零五行业门户网

处理文件加载. 文件下载等相关功能

处理文件加载. 文件下载等相关功能
 'continue',
        '101' => 'switching protocols',
'200' => 'ok',
        '201' => 'created',
        '202' => 'accepted',
        '203' => 'non-authoritative information',
        '204' => 'no content',
        '205' => 'reset content',
        '206' => 'partial content',
'300' => 'multiple choices',
        '301' => 'moved permanently',
        '302' => 'found',
        '303' => 'see other',
        '304' => 'not modified',
        '305' => 'use proxy',
        '306' => '(unused)',
        '307' => 'temporary redirect',
'400' => 'bad request',
        '401' => 'unauthorized',
        '402' => 'payment required',
        '403' => 'forbidden',
        '404' => 'not found',
        '405' => 'method not allowed',
        '406' => 'not acceptable',
        '407' => 'proxy authentication required',
        '408' => 'request timeout',
        '409' => 'conflict',
        '410' => 'gone',
        '411' => 'length required',
        '412' => 'precondition failed',
        '413' => 'request entity too large',
        '414' => 'request-uri too long',
        '415' => 'unsupported media type',
        '416' => 'requested range not satisfiable',
        '417' => 'expectation failed',
'500' => 'internal server error',
        '501' => 'not implemented',
        '502' => 'bad gateway',
        '503' => 'service unavailable',
        '504' => 'gateway timeout',
        '505' => 'http version not supported',
    );
/**
     * 设置http状态信息
     *
     * @access public
     * @param string $code  http 状态编码
     * @param string $name  http 状态信息
     * @return string
     */
    public static function httpstatus($code, $text = null) {
        //获取http协议
        $protocol = isset($_server['server_protocol']) ? $_server['server_protocol'] : 'http/1.1';
        $text = is_null($text) ? self::$_httpstatus[$code] : $text;
        $status = $protocol $code $text;
header($status);
    }
}
ad:真正免费,域名+虚机+企业邮箱=0元
其它类似信息

推荐信息