下载文件
可以指定下载显示的文件名,并自动发送相应的Header信息 如果指定了content参数,则下载该参数的内容
static void
download
(string $filename, [string $showname = ''], [string $content = ''], [integer $expire = 180])
-
string
$filename: 下载文件名
-
string
$showname: 下载显示的文件名
-
string
$content: 下载的内容
-
integer
$expire: 下载内容浏览器缓存时间
显示HTTP Header 信息
static string
get_header_info
([ $header = ''], [ $echo = true])
HTTP Protocol defined status codes
static void
send_http_status
( $code, int $num)