Image

Error Capture...

Does anyone know if it's possible within a PHP script to catch an error, and therefore fire other a function to deal with that error, followed by continue the code from where the error accored?

What I'm trying to do is to capture a situation when a set of constants (_MY_TEXT, etc) are being used without being defined, and in such a case instead of the error force a reload from the my constants file.

..and incase someone suggests in.. the constants are used through out this huge project.. so I can't play safe and use lots of;
if ( !defined($constant) )
all over the code. I ned to be able to just trap it when a constant gets used!