1 <?php
2 header("HTTP/1.0 404 Not Found");
3 ?>
第二种特殊情况是"Location:"的头信息。它不仅把报文发送给浏览器,而且还将返回给浏览器一个 REDIRECT(302)的状态码,除非状态码已经事先被设置为了201或者3xx。
<?php header("Location: http://HdhCmsTestexample测试数据/"); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?>
<?php header('WWW-Authenticate: Negotiate'); header('WWW-Authenticate: NTLM', false); ?>
查看更多关于PHP header函数使用大全的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did30558