Dec 17th, 2011, 1:24 PM
(Dec 17th, 2011, 1:10 PM)Ben Wrote: michat - the bit of code you mentioned, is that the $g_default_error_reporting setting?
Indeed, very handy!
(Dec 17th, 2011, 1:10 PM)Ben Wrote: You *can* customize the displaying and gathering of those errors through PHP, I believe, but it's kind of fussy. Instead, PHP usually logs that info automatically in its own error logs. For problems of this nature, searching the error logs is a much more elegant way to handle them. I often look through my own logs to find out the sort of problems that are occurring that I didn't know about. Maybe contact your hosting provider to find out where they're stored.
I briefly glanced at the error logs in cPanel, but didn't see any kind of PHP logs, I'll have to call them next week about that.
With the idea that PHP error logs exist on the server, I'm not so concerned about the error output doing anything special now. However, I WOULD like to have a message display on error output for customers. Something like, "Oops, we've encountered an error while processing your form, please contact us to finish your request." Or something. Something in text, standardized, that I can customize.
Would that be as easy as adding an echo script somewhere?