ShaolinF Posted January 31, 2008 Share Posted January 31, 2008 How could I log errors for debugging later on ? Quote Link to comment https://forums.phpfreaks.com/topic/88761-logging-errors/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 31, 2008 Share Posted January 31, 2008 Do you mean errors that php detects or errors that your code detects? For the former - http://www.php.net/manual/en/ref.errorfunc.php For that later - http://www.php.net/manual/en/function.error-log.php or http://www.php.net/manual/en/function.trigger-error.php Quote Link to comment https://forums.phpfreaks.com/topic/88761-logging-errors/#findComment-454661 Share on other sites More sharing options...
ShaolinF Posted January 31, 2008 Author Share Posted January 31, 2008 Thanks. I was looking for mysql errors. I was thinking if I of finding a way to record them into a file or a DB, and generate a random error no. for the user to quote in support like google does. Quote Link to comment https://forums.phpfreaks.com/topic/88761-logging-errors/#findComment-454681 Share on other sites More sharing options...
uwannadonkey Posted January 31, 2008 Share Posted January 31, 2008 dont do random, its simple if u just do an autoincrement, with random, theres a chance 2 could be of the same number, and that would ironically be an error Quote Link to comment https://forums.phpfreaks.com/topic/88761-logging-errors/#findComment-454744 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.