
Originally Posted by
TechnoBear
In that case, I'll just go ahead and do it. (I'm always terrified of breaking something.

)
When you are feeling brave try this:
// your header.php
PHP Code:
ini_set('display_errors', FALSE );
error_reporting( E_ALL );
$tmp = getcwd() . "/php_error_" .date('y-m-d__h-i-s' ) ) .".log"
ini_set('error_log', $tmp) ;
Points to note:
1. the user will not see any PHP errors
2. PHP errors will be generated in the background
3. any PHP errors will create and/or append to a daily error log file
4. error log file will be named: "php_error_yy-mm-dd__hh-mm-ss.log"
5. the log file will be in the same directory as your header.php (or the file that includes 'header.php' )
Discuss
Bookmarks