> hi guys how is ti possible to do a set_error_handler within a class so it > will trigger the callback function and so will be able to return the line > and file in the message ?
You'd set it just like you would anywhere else in your code. If you want the callback function to be a method in your class, then you pass an array to set_error_handler(). Details are in the manual on the format of the array. It'll be the same as any other callback function that you can send a classes method to. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php