NYCPHP Meetup

NYPHP.org

[nycphp-talk] Global error handling ...

jon baer jonbaer at jonbaer.net
Wed Sep 24 09:26:30 EDT 2003


i missed a great meeting *again* last night and one of the questions i
wanted to ask what in regards to having a global error handler for your
website.

for example i really wanted to provide much more helpful info on items that
can occur with mysql for a project (cant connect, misconfiguration,
non-installed tables, etc) ...

but i noticed that (could be my config) that mysql_select_db will not pass
error to any handlers (using set_error_handler).  i ended up giving up and
writing a bunch of tests inside install.php instead.  but i thought there
was a way to pass mysql_error() to your page handlers + if it was ok/smart
to autoinclude both set_error_handler + the handler for all of the app.

was really looking for/asking about this in the site layout discussion.

- jon

pgp key: http://www.jonbaer.net/jonbaer.asc
fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47




More information about the talk mailing list