不管你是PHP新手还是PHP大拿,看看下面代码如何运行:
if(TRUE) { header("Location: www.51cto.com"); } header("Location: www.sina.com.cn");
你肯定会说,我们进入了51CTO的站点。
NO!实际情况却是你进入了新浪!
要进入51CTO,你得这样:
if(TRUE) { header("Location: exit(); } header("Location: www.sina.com.cn");
呵呵!
不管你是PHP新手还是PHP大拿,看看下面代码如何运行:
if(TRUE) { header("Location: www.51cto.com"); } header("Location: www.sina.com.cn");
你肯定会说,我们进入了51CTO的站点。
NO!实际情况却是你进入了新浪!
要进入51CTO,你得这样:
if(TRUE) { header("Location: exit(); } header("Location: www.sina.com.cn");
呵呵!
案例学Python:filter()函数的用法,高级!
注:此文章转自csdn网站,本文主要讲述用php语言来描述html中的header。标头 (header) 是服务器以 HTTP 协义
php header函数小结
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M