Hopefully someone can help here.
I have various SC app’s running in production that work 99% of the time. However every so often we get a reports that the app has thrown an error. I have tried a dozen different things to try and recreate error but without success.
Some simple code I found is shown below, but I cant seem to get it to work. I have searched all over for an asnwer but no joy.
function xhandler($number,$string,$file,$line,$context) { //log to text file? //log to xml file? //store in database? //whatever you want to do! }
/* use this error for ALL (E_ALL) errors */ set_error_handler(‘xhandler’,E_ALL);
But where would I put it, so that
Thanks
Larry