开发者

PHP error stacktrace - direct to a log file

开发者 https://www.devze.com 2023-01-04 01:11 出处:网络
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

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

精彩评论

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