Re: Handling Errors Gracefully

From: Date: Sat, 09 Nov 2002 23:00:20 +0000
Subject: Re: Handling Errors Gracefully
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123632@lists.php.net to get a copy of this message
At 23:57 09.11.2002, Ernest E Vogelsinger said: --------------------[snip]-------------------- ><?php >if ($we_found_an_error) { > $url = 'http://' . > $_SERVER['SERVER_NAME'] . > '/my_error_handler.php?any_parameters_you_need'; > echo '<script language="JavaScript">', > 'document.location.href="', $url, '">', > '</script>', > '<hr>', > 'A nasty error has occurred. If you are not redirected ', > 'to the correct page, <a href="',$url,'">click > here</a> to', > 'continue (sorry folks)'; // I FORGOT THIS LINE... exit; >} >// else no error - continue > >?> --------------------[snip]-------------------- -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#123632) next »