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

php header示例代碼(推薦)

復制代碼 代碼如下:
<?php
/*** Function: php header() examples (php)
** Desc: Some examples on how to use the header() function of phpYou find a detailed tutorial at expertsrt.com (English) or at ffm.juNETz.de (German).These is also a good help about caching at web-caching.com.
** Example: see below. <br/><br/><b>Tip:</b> You can use these sites to check your headers: <a href="http://web-sniffer.NET/">web-sniffer.NET</a>, <a >delorie.com</a> or <a >www.forret.com</a>.
** Author: Jonas John
*/

// 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()

主站蜘蛛池模板: 夏津县| 宝鸡市| 灵石县| 鹰潭市| 潞城市| 化隆| 镶黄旗| 丹凤县| 巴中市| 乾安县| 涞水县| 收藏| 嘉义县| 泸西县| 昭通市| 东丰县| 肃南| 宁乡县| 温泉县| 阳城县| 本溪市| 金寨县| 曲阜市| 永年县| 定襄县| 常山县| 磐石市| 平原县| 通州区| 庆元县| 太原市| 碌曲县| 胶南市| 乌拉特前旗| 尉氏县| 循化| 镇雄县| 通辽市| 宁化县| 乃东县| 拉孜县|