Customized 404 not found with PHP
<p>I am using the following code to display a cutom 404 not found with PHP:</p>

<pre><code>header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
include('404.php');
exit();
</code></pre>

<p>However, the default browser's 404 page shows up. What is the right code for producing 404 while including a PHP file?</p>

<p>Thanks,</p>

<p>Joel</p>
