[SOLVED] how to catch all PHP errors, warnings and so on in

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
davidklonski
Forum Contributor
Posts: 128
Joined: Mon Mar 22, 2004 4:55 pm

how to catch all PHP errors, warnings and so on in a single

Post by davidklonski »

Hello

Is it possible to define a php page which will be invoked automatically for any error, warning, notices, and so on?
I want this page to display what the error was.

I am guessing that I need to configure php.ini, but I am not sure.

thanks in advance.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

check into set_error_handler()
davidklonski
Forum Contributor
Posts: 128
Joined: Mon Mar 22, 2004 4:55 pm

Post by davidklonski »

thanks for the help
Post Reply