NYCPHP Meetup

NYPHP.org

[nycphp-talk] Error Traping

Dan Cech dcech at phpwerx.net
Tue Jan 20 11:33:10 EST 2004


Spot wrote:
> This may be a simple question, but I have asked quite a few hard core
> PHP people and they all said no.
> 
> Is there anyway to trap fatal errors before they get to the browser?

Not that I know of.  A Fatal error is usually something that should halt 
execution, hence the 'Fatal' part.

I suggest you rethink your code to prevent the error occurring in the 
first place.  In general it is good coding practice to avoid creating 
code which generates errors of any kind, and especially Fatal errors.

Dan

> Spot
> deviantART Inc.
> www.deviantart.com





More information about the talk mailing list