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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to