PHP error stacktrace - direct to a log file
I have some PHP scripts that are accessed by external non human sources. Normally when a开发者_StackOverflow社区 human accesses a page they will get the html error responses when an error occurs. Is it possible to log these errors into a file that a person can look at later?
You could implement your own error handler to do it for you... This comment may also be applicable...
If the errors get logged you could use ini_set("error_log", "file")
精彩评论