header函数

header函数

主要用于对http协议头设置相关信息

设置浏览器显示编码(解决乱码)

header("Content-type:text/html;charset=utf-8");

示例:

设置跳转

header("location:url");

示例:

posted @ 2016-04-05 09:23  尼农小道  阅读(142)  评论(0编辑  收藏  举报