PHP应用开发与实战第13章图形图像处理.ppt

header()函数可以实现如下4种功能: (1)重定向,这是最常用的功能。 header(Location: ); (2)强制客户端每次访问页面时获取最新资料,而不是使用存在于客户端的缓存。 //设置页面的过期时间(用格林威治时间表示)。 header(Expires: Mon, 08 Jul 2008 08:08:08 GMT); //设置页面的最后更新日期(用格林威治时间表示),使浏览器获取最新资料 header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); header(Cache-Control: no-cache, must-revalidate); //控制页面不使用缓存 header(Pragma: no-cache); //参数(与以前的服务器兼容),即兼容HTTP1.0协议 header(Content-type: application/file); //输出MIME类型 header(Content-Length: 227685); //文件长度 header(Accept-Ranges: bytes); //接受的范围单位 //缺省时文件

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档