- 404:
- header ("HTTP/1.1 404 Not Found");
- 301:
- header ("HTTP/1.1 301 Moved Permanently");
- header ("Location:http://www.baidu.com");
下载文件:
- header (Content-type: application/file);
- header ("Content-Disposition: attachment; filename=test.file");
- readfile ("test.file");
来源: http://www.bubuko.com/infodetail-2527788.html