Reply to Re: mysql class, error handling

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация