[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-windows
Subject:    [PHP-WIN] IIS6 error page for PHP errors?
From:       Travis Raybold <travis () raybold ! com>
Date:       2006-01-30 18:19:00
Message-ID: 43DE5894.1010500 () raybold ! com
[Download RAW message or body]


has anyone figured out if there is a way to have IIS's custom error 
pages work for PHP?

i have custom error handling code that is fine for non-fatal errors. but 
the only workaround i have found for handling fatal errors involves 
turning off buffereing, which i don't want to do.

the way i can handle fatal errors is to first thing on every page send a 
Location header that redirects to the error page, and if i get a fatal 
error it goes to the error page. if i finish the page normally, the last 
bit of code i have resets the Location header. this necessitates turning 
off buffering, obviously.

anyone have a better way of handling this? all i want is to redirect to 
a clean error page if there is a fatal error.

--travis

["smime.p7s" (application/x-pkcs7-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic