By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,828 Members | 1,223 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,828 IT Pros & Developers. It's quick & easy.

Dealing with PHP / MySQL errors

P: n/a
I am familiar with the "die" string you can add to a MySQL statement what
if an error occurs, the error is displayed on screen. What I'd like to
know is if there is a way to redirect a user on getting an error to a
custom error page, which I would also be able then to send an email to
myself (as admin) that an error had occurred?

Dariusz
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <rH*********************@wards.force9.net>,
ng@lycaus.plusYOURSHIT.com (Dariusz) wrote:
I am familiar with the "die" string you can add to a MySQL statement what
if an error occurs, the error is displayed on screen. What I'd like to
know is if there is a way to redirect a user on getting an error to a
custom error page, which I would also be able then to send an email to
myself (as admin) that an error had occurred?


See here:

http:/www.php.net/set_error_handler

JP

--
Sorry, <de*****@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.
Jul 17 '05 #2

P: n/a
In article <de***************************@news1.news.xs4all.n l>, wrote:
See here:

http:/www.php.net/set_error_handler


Thanks JP.

Dariusz
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.