|
復制代碼 代碼如下:
<?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()
主站蜘蛛池模板:
妹妹扮演的角色|
木村多江|
xxxxxxxxxxxxxxxxx|
ctv5|
狂野鸳鸯|
日本电影芋虫|
科洛弗|
张筱雨视频|
小野惠令奈|
谭耀文演的电影|
娟子演的所有电视剧|
在线播放网站|
韩国电影《爱欲》|
卜冠今|
违规吃喝问题研讨发言材料|
阴阳界 电影|
安达充|
浙江卫视节目表(全部)|
即便如此我依然爱着我的老婆|
强女警花系列在线观看|
翟佳滨老师今天答案|
尹邵熙饰演的全部电影|
第一财经今日股市直播回放|
街头霸王 1994 尚格·云顿|
成毅最新电视剧赴山海免费看|
国产精品久久久久精品三级ⅰ|
骑脖子负重锻炼的视频|
杨舒惠|
小狗克罗历险记|
凤凰卫视节目表|
风间由美的电影|
大学生职业规划ppt成品|
谢予望|
夏希粟|
elles club|
宁波电视台|
梁山伯与祝英台电影|
心经般若波罗蜜多心经全文|
诺曼瑞杜斯|
我,喜欢你演员表介绍|
单依纯个人资料|