sorry is there a way to do this in php3 ? my work currently only has php3 ,
where i am upgrading it for them soon, this is a bummer, i soughta wanna
catch errors and show the line and file in the error too

-----Original Message-----
From: John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 4:51 AM
To: 'electroteque'; [EMAIL PROTECTED]
Subject: RE: [PHP] set_error_handler inside a class


> 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

Reply via email to