header("HTTP/1.1 404 Not Found"); header("Status: 404 Not Found");我用这两句代码发送了404错误状态信息
http状态码输出正确了
但是显示为空白  为什么不显示IIS默认的404错误界面呢?
求解

解决方案 »

  1.   

    Firefox has no built-in default 404 display, so if your PHP script sends no HTML output in addition to the 404 header, nothing will be displayed by the browser.Internet Explorer on the other hand uses a default informative 404 page if there is no HTML content returned along with the 404 header.Apache's 404 configuration only applies to plain old .html files that haven't been handled by a filter (e.g. PHP). 
      

  2.   

    使用ErrorDocument自己弄个404页面吧