Re: Re: Warnings on the bottom of the pages on Linux
| From: | Curt Zirzow | Date: | Wed, 29 Dec 2004 20:12:33 +0000 |
| Subject: | Re: Re: Warnings on the bottom of the pages on Linux | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205383@lists.php.net to get a copy of this message | ||
* Thus wrote Jason Barnett:
> I haven't done it (what's the point since I'm a Windows user lol), but
> you can change the default error handler. If it's error messages at the
> bottom of HTML pages you want then just choose appropriate HTML elements
> you need to align a message at the bottom of your page.
>
> http://php.net/function.set-error-handler
And to demonstrate this:
class EHandler {
// the method to collect the errors
public function accept(...) {}
// the method to show the errors
public function display() {}
}
$eh = new EHandler();
set_error_handler(array($eh, 'accept'));
// do stuff that causes errors, notices or warnings
// ...
$eh->display();
Curt
--
Quoth the Raven, "Nevermore."