Posted by Alvaro G. Vicario on 07/12/06 19:02
*** paranic escribió/wrote (12 Jul 2006 03:37:29 -0700):
> is there any way to have correct error reporting without printing the
> query on the browser and without modifing the way i call the query
> function?
You can use trigger_error() to raise custom errors. Then, you can write a
custom error handling function and assign it with set_error_handler(). This
function allows you to do whatever you want with error messages: print on
screen, log to file...
PHP 5 has a new exception system. I haven't tried it but I suppose its
similar to those in Java or JavaScript.
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
[Back to original message]
|