RE: [PHP] Handling Errors Gracefully
| From: | John W. Holmes | Date: | Mon, 11 Nov 2002 04:39:10 +0000 |
| Subject: | RE: [PHP] Handling Errors Gracefully | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123758@lists.php.net to get a copy of this message | ||
Well, if you rule out ob_* and javascript, the best you can probably do
is to just include() your error page or write a function to display it.
You won't be redirected to the page, but it'll show up.
---John Holmes...
> -----Original Message-----
> From: Monty [mailto:monty3@hotmail.com]
> Sent: Saturday, November 09, 2002 5:43 PM
> To: php-general@lists.php.net
> Subject: [PHP] Handling Errors Gracefully
>
> 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