PHP//200正常状态header('HTTP/1.1200OK');//301永久重定向,记得后面加上重定向地址Location:$urlheader('HTTP/1.1301MovedPermanently');//重定向,其实就是302临时重定向头('位置:http://www.maiyoule.com/');//设置页面304不修改header('HTTP/1.1304NotModified');//显示登录框,header('HTTP/1.1401Unauthorized');header('WWW-Authenticate:Basicrealm="登录信息"');echo'显示的信息!';//403禁止标头('HTTP/1.1403禁止');//404错误标头('HTTP/1.1404未找到');//500服务器错误标头('HTTP/1.1500内部服务器错误');//3秒后重定向到指定地址(即刷新到新页面,同)header('Refresh:3;url=http://www.maiyoule.com/');echo'10后跳转到http://www.maiyoule.com';//重写X-Powered-By值header('X-Powered-By:php/5.3.0');header('X-Powered-By:Brain/0.6b');//设置上下文语言header('Content-language:en');//设置页面的最后修改时间(主要用于anti-caching)$time=time()-60;//建议使用filetime函数设置页面缓存时间header('Last-Modified:'.gmdate('D,dMYH:i:s',$time).'GMT');//设置内容长度header('Content-Length:39344');//设置头文件类型,可用于流文件或文件下载header('Content-类型:application/octet-stream');header('Content-Disposition:attachment;filename="example.zip"');header('Content-Transfer-Encoding:binary');readfile('example.zip');//将文件读取到客户端//禁用页面缓存标头('Cache-Control:no-cache,no-store,max-age=0,must-revalidate');header('Expires:Mon,26Jul199705:00:00GMT');header('Pragma:no-cac他');//设置页眉信息header('Content-Type:text/html;charset=iso-8859-1');header('Content-Type:text/html;charset=utf-8');header('内容类型:文本/plain');header('内容类型:图片/jpeg');header('Content-Type:application/zip');header('内容类型:应用程序/pdf');header('内容类型:音频/mpeg');header('Content-Type:application/x-shockwave-flash');//...关于Content-Type的取值,可以查w3c文档库,很丰富?>