Re: Re: Warnings on the bottom of the pages on Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* 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."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux