404 header in PHP shows blank page in Firefox

I'm just trying to test to see if my header 404 is working in PHP and I have this:

But when I go to that page, it seems to show a 404 page for IE but a blank page Firefox. Is this something I have to explicitly set in Apache? I just want to be able to show a 404.

Related tags: Apache HTML PHP

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).

Rating: 2

Propose a different solution...