Re: Variable dump on error

From: Date: Thu, 19 Jul 2001 21:31:45 +0000
Subject: Re: Variable dump on error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58791@lists.php.net to get a copy of this message
Read http://php.net/set_error_handler and http://php.net/trigger_error Pay particular attention to the user notes on the set_error_handler() page. -Rasmus On Thu, 19 Jul 2001, Randy Miller wrote: > Using mod_perl when an error is encountered, I have a customized error > screen that is defined in http.conf that is displayed to the user. This is > just a customized 500 page that then emails me which page crashed and all > of the local variables. > > I can't seem to find a way to do this in PHP 4.0.6. Mod_Perl on error > throws a 500 to the webserver, where PHP seems to just keep on > going. Suppressing the errors only seems to return an empty page with a > status of 200 as verified in my apache logs. I realize that I could have an > error handling statement around every possible place an error could occur, > but this doesn't seem very efficient to me. > > Does anybody know of a way to generate an email on error with all the > current variables? > > > Randy Miller -- Team Leader, Web Development > HighWired.com -- Your high school connection > http://www.highwired.com/ > rmiller@highwired-inc.com -- 617.393.2233 > > > >

« previous php.general (#58791) next »