php header
来源:互联网 发布:贝叶斯过滤算法 编辑:程序博客网 时间:2024/06/05 05:34
Content-Type: xxxx/yyyy
Location: xxxx:yyyy/zzzz
Status: nnn xxxxxx
在新的多型标头规格 (Multipart MIME) 方可以出现二次以上。
使用范例
范例一: 本例使浏览器重定向到 PHP 的官方网站。
<?php
Header("Location: http://www.php.net";);
exit;
?>
范例二: 要使用者每次都能得到最新的资料,而不是 Proxy 或 cache 中的资料,可以使用下列的标头
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
?>
范例三: 让使用者的浏览器出现找不到档案的信息。
<?php
header("Status: 404 Not Found");
?>
范例四:让使用者下载档案。<?php
header("Content-type: application/x-gzip");
header("Content-Disposition: attachment; filename=文件名");
header("Content-Descrīption: PHP3 Generated Data");
?>
- php header
- PHP Header
- header() php
- PHP header()
- PHP:Header
- PHP header
- php header
- php-header
- php header 用法 php header 应用 header 函数
- PHP Header使用
- php中的header汇总
- PHP Header使用注意事项
- header的用法(PHP)
- PHP header详解
- php header()函数使用说明
- PHP的HEADER
- php header & http
- PHP header() 函数
- 职场
- 计算机缩写名
- GridView一些实例
- windows运行的命令集锦
- smartupload -- 批量上传模块
- php header
- 对话框类的设计
- oracle日期函数
- DataList实例
- Datalist嵌套
- ADO数据库错误信息表
- 初步完成了一个处理PEN3电子鼻气味传感数据的Matlab-GUI程序
- Java-to-Javascript Communication
- 通过dump内存中printk的__log_buf地址查看Linux启动部分的错误