Hello. I am using PHP and Apache on Win98 and I am having
trouble setting up the ErrorDocument directives.

I edited the httpd.conf file with:

ErrorDocument 404 /somefile.php

where somefile.php contains code to output a specific message based on the code.

This directive works for .html, .txt, and other extensions, EXCEPT for .php extensions.

Can someone tell me what I might be doing wrong.