//atom
//css
//javascript
//jpeg image
//json
//rss
//text (plain)
//xml
// ok
//设置一个404头:
//设置地址被永久的重定向
//转到一个新地址
//文件延迟转向:
//当然,也可以使用html语法实现
//
// override x-powered-by: php:
//文档语言
//告诉浏览器最后一次修改时间
//告诉浏览器文档内容没有发生改变
//设置内容长度
//设置为一个下载类型
header('content-transfer-encoding: binary');
// load the file to send:
readfile('example.zip');
// 对当前文档禁用缓存
header('expires: mon, 26 jul 1997 05:00:00 gmt'); // date in the past
header('pragma: no-cache');
//设置内容类型:
header('content-type: text/plain'); //纯文本格式
header('content-type: image/jpeg'); //jpg***
header('content-type: application/zip'); // zip文件
header('content-type: application/pdf'); // pdf文件
header('content-type: audio/mpeg'); // 音频文件
header('content-type: application/x-shockw**e-flash'); //flash动画
//显示登陆对话框
header('www-authenticate: basic realm=top secret');
print 'text that will be displayed if the user hits cancel or ';
print 'enters wrong login data';
http://www.bkjia.com/phpjc/753935.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/753935.htmltecharticle//定义编码 //atom //css //javascript //jpeg image //json //pdf //rss //text (plain) //xml // ok //设置一个404头: //设置地址被永久的重定向 //转到一个新地址...
