Re: [PHP] Trapping PHP Errors

2003-06-19 Thread CPT John W. Holmes
> How do I trap a PHP error and display my own error message instead? > > I have two PHP scripts - one that creates tables on MSSQL and one that > deletes tables on MSSQL. I wish to capture the message that appears if > the user attempts to create tables that already exist, or delete ones > that d

Re: [PHP] Trapping PHP errors

2003-01-14 Thread Michael Sims
On Wed, 15 Jan 2003 13:25:05 +0900, you wrote: >If it's not asking too much would you be willing to share that custome >error handler you wrote? It's a big long so I'm sending it to you off-list. If anyone else is interested just send me an email off list and I'll send you a copy... -- PHP Gen

Re: [PHP] Trapping PHP errors

2003-01-14 Thread Jean-Christian Imbeault
Michael Sims wrote: My site has a custom error handler (implemented via set_error_handler) which sends a nicely formatted email including all of the error details, a variable dump, the contents of the output buffer before the error occured, and the contents of a call to debug_backtrace, in additi

Re: [PHP] Trapping PHP errors

2003-01-13 Thread Michael Sims
On Tue, 14 Jan 2003 23:38:11 +0100, you wrote: >Hi all, > >is there a way to execute a custom function as soon as an error happens in >PHP? I looked at the set_error_handler function, but it doesn't seem to trap >all the errors. What I want to achieve is to execute a function that mails >me the er