开发者

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")

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜