FishSword Posted June 4, 2011 Share Posted June 4, 2011 Hiya , Is it possible to store PHP error messages in a MySQL database? Many Thanks, FishSword Link to comment https://forums.phpfreaks.com/topic/238406-store-php-errors-in-database/ Share on other sites More sharing options...
Fadion Posted June 4, 2011 Share Posted June 4, 2011 You can use Exceptions to catch errors and log them in a database. Link to comment https://forums.phpfreaks.com/topic/238406-store-php-errors-in-database/#findComment-1225191 Share on other sites More sharing options...
PFMaBiSmAd Posted June 4, 2011 Share Posted June 4, 2011 What if the php errors are due to a problem with your database? You wouldn't be able to log the errors. Php's built in error handling can log errors to a file (see the log_errors and error_log settings) and if your web site is functional at all, the file system is most likely functional to the point that php can write to the error log file. Link to comment https://forums.phpfreaks.com/topic/238406-store-php-errors-in-database/#findComment-1225196 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.