Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Andy Fiddaman
: ErrorDocument 404 http://www.jeamland.org/_error.html Yep, it does seem to work if I put the whole URL in the ErrorDocument directive rather than just /_error.html ! Unfortunately, that makes the web server snd a redirect which isn't exactly what I want (unless you know of a way to get at the or

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Wendell Brown
On Fri, 20 Jun 2003 10:34:04 -0500, Wendell Brown wrote: >>> php_value auto_prepend_file header.php >>> php_value auto_append_file footer.php Andy, I've tried the following (with my server info, of course) in one of my directories and it works like a champ! It doesn't mat

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Wendell Brown
On Fri, 20 Jun 2003 10:15:43 -0500, Wendell Brown wrote: >Try it without the: > >> php_value auto_prepend_file header.php >> php_value auto_append_file footer.php Or check for the existence of the requested file in the header and if not found, send the 302 header with a

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Wendell Brown
On Fri, 20 Jun 2003 15:08:39 GMT, [EMAIL PROTECTED] wrote: > > AddType application/x-httpd-php .html > php_value include_path ".:/spool/web/www.jeamland.org/lib" > php_value auto_prepend_file header.php > php_value auto_append_file foo

[PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread php
I'm having a problem configuring my web server to redirect 404 errors to a custom error page. It almost looks like the PHP parser is getting hold of the request before apache has checked to see if the file exists. It works fine if you request an unknown page on the server that isn't a PHP script,