色尼玛亚洲综合影院,亚洲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()

主站蜘蛛池模板: 开阳县| 平果县| 涟水县| 安岳县| 灵宝市| 乃东县| 洮南市| 石林| 麟游县| 恩平市| 武清区| 西城区| 芒康县| 惠安县| 长白| 新巴尔虎左旗| 沾化县| 温泉县| 白沙| 丰原市| 洪泽县| 永春县| 吕梁市| 开封县| 梁山县| 宁晋县| 巫山县| 淄博市| 普兰店市| 太白县| 永嘉县| 塔河县| 卓资县| 万盛区| 枣庄市| 方城县| 舟山市| 郎溪县| 射阳县| 广宁县| 年辖:市辖区|