Re: Handling Errors Gracefully

From: Date: Sat, 09 Nov 2002 22:42:53 +0000
Subject: Re: Handling Errors Gracefully
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123630@lists.php.net to get a copy of this message
I think the only way to do it the way you want to do it is through buffering (with the ob_functions or via the php.ini file). Turning off error printing is another possibility--that way you can have the errors logged to a file rather than to the screen. Marco -- ------------ php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Sat, 2002-11-09 at 17:42, Monty wrote: > Is there any way to gracefully handle errors that happen after output to the > screen has begun (the point where header(Location:) doesn't work) without > using ob_ functions? > > I have a separate PHP page I'd like to display with the error if one happens > using the error_handler() and trigger_error() functions. But, I can't make > it work because if the error happens after output starts, I just get an > error stating header() won't work. > > I'm also not sure of the best way to pass all the error data to the error > page. Its too much for a $_GET. > > Anyone have any suggestions or links to articles that explain how this can > be done?? Thanks a lot. > > Monty > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#123630) next »