好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

PHP header函数使用大全

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函数使用大全的详细内容...

  阅读:36次