header http 标头信息
header("Content-type: image/jpeg");
jpg文件的头
header("Content-type: image/gif");
gif文件的头
header("Content-type: image/png");
png 文件的头
header('Content-Type: application/force-download');
文件下载的头
header("Content-disposition:atachment; filename=/"shi.wmv/"");
文件名的头
header("HTTP/1.0 404 Not Found");
404
header("Location: http://www.baidu.com");
跳转到 指定的url
header("refresh:3;url=http://www.baidu.net");
定时跳转到 指定url
header("Set-Cookie: PHPSESSID=12; path=/");
用header送cookie