色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

PHP header函數分析詳解

php語言中,header()這個函數很有用的,尤其在用到ajax時候,他會幫你解決一些意想不到的問題。下面是header的一些詳細講解。希望對phper有幫助
復制代碼 代碼如下:
<?php
// fix 404 pages:
header('HTTP/1.1 200 OK');
// set 404 header:
header('HTTP/1.1 404 Not Found');
// set Moved Permanently header (good for redrictions)
// use with location header
header('HTTP/1.1 301 Moved Permanently');
// redirect to a new location:
header('Location: http://www.example.org/');
// redrict with delay:
header('Refresh: 10; url=http://www.example.org/');
print 'You will be redirected in 10 seconds';
// you could also use the HTML syntax:// <meta http-equiv="refresh" content="10;http://www.example.org/ />
// override X-Powered-By: php:
header('X-Powered-By: php/4.4.0');
header('X-Powered-By: Brain/0.6b');
// content language (en = English)
header('Content-language: en');
// last modified (good for caching)
$time = time() 主站蜘蛛池模板: 克什克腾旗| 明溪县| 拜城县| 石景山区| 平昌县| 连江县| 成都市| 渑池县| 梅州市| 新建县| 盱眙县| 奇台县| 梅州市| 剑阁县| 安泽县| 卢湾区| 青岛市| 辽宁省| 辽阳市| 平原县| 潜江市| 安远县| 青川县| 永安市| 定州市| 新竹市| 饶平县| 太仓市| 开原市| 淮阳县| 鸡西市| 瑞丽市| 宿州市| 贵德县| 博爱县| 儋州市| 玛沁县| 汕尾市| 枞阳县| 梁河县| 莱西市|