JustinK101 Posted February 13, 2008 Share Posted February 13, 2008 How do I redirect all PHP error and warning messages to a log file I created for a single script instead of displaying the error/warning on the screen? Basically I am creating an installer script and I want to log any errors returned from any of the functions or classes. Link to comment https://forums.phpfreaks.com/topic/90858-redirect-php-errors-and-warning-to-custom-log-file/ Share on other sites More sharing options...
Isityou Posted February 13, 2008 Share Posted February 13, 2008 Is it an error log for the user or for the administrator? You can build your own error handling code and write to a log file. PHP also has built in error logging functions. A good resource could be found here: http://us.php.net/errorfunc Link to comment https://forums.phpfreaks.com/topic/90858-redirect-php-errors-and-warning-to-custom-log-file/#findComment-465659 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.