**1.**跳转页面:header(“Location:要跳转的页面”);
header("Location:http://www.baidu.com");
直接跳转到百度页面
**2.**延时跳转页面header(“Refresh:延时秒数;url=要跳转的页面”);
header("Refresh:5;url=http://www.baidu.com");
延时5秒跳转到百度页面
**3.**声明content-type(内容类型)
header("content-type:text/html;charset=utf-8");
设置页面内容为html,编码格式是utf-8
**4.**设置文件下载
header("content-disposition:attachment;filename=文件名");
下载该文件