error_reporting(E_ALL ^ E_NOTICE);
设置php错误报告的级别,不显示notice,其它全显示下面的是发送HTTP头,还是去看下HTTP协议的文档吧
设置php错误报告的级别,不显示notice,其它全显示下面的是发送HTTP头,还是去看下HTTP协议的文档吧
解决方案 »
- php下载文件不显示进度条
- PHP中为什么接不到值
- php mysql我是新手 网上找不到 不要模板和框架
- 求考试系统的开发思路
- 静态页和Memcached的区别?
- mysql 不区分英文大小写查询
- 打开包含iframe的文件时总要提示下载iframe包含的网页(在线等)?
- 80分请大侠相帮:session问题
- 急问,php/apache/mysql 组建local web 中的问题
- 请问如何在框架网页中,点击超链接,同时链接到两个文件在两个不同的FRAME中打开
- 分页显示无法执行limit
- 小弟想学PHP,VC,java已有2,3年的开发经验,怎样学PHP最快,有什么好书或好站,希望大家帮忙
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");// 最后修改时间
header("Pragma: no-cache");//设置页面不使用缓存
其它的学习……
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); //设置页面失效期
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //设置页面时间,当前时间肯定迟于Mon, 26 Jul 1997 05:00:00 GMT,所以页面进入后就已失效了。再入时浏览器会访问服务器
header("Pragma: no-cache"); //通知浏览器不使用缓存机制————使客户端总能得到最新的页面由于不同的浏览器对这些http协议支持程度不同,所以这几句通常一起出现
有什么区别?
You may find that your pages aren't cached even if you don't output all of the headers above. There are a number of options that users may be able to set for their browser that change its default caching behavior. By sending the headers above, you should override any settings that may otherwise cause the output of your script to be cached. Additionally, session_cache_limiter() and the session.cache_limiter configuration setting can be used to automatically generate the correct caching-related headers when sessions are being used.