开发者

PHP when display_errors set to 0 500 in AJAX response

开发者 https://www.devze.com 2022-12-30 02:00 出处:网络
I have a wired problem. When I set display_errors to 0 on production enviroment then AJAX request to some PHP script returns apache server error 500 and nothing works. When I set it to 1 then response

I have a wired problem. When I set display_errors to 0 on production enviroment then AJAX request to some PHP script returns apache server error 500 and nothing works. When I set it to 1 then response is 200 and everything seems to be fine.

Question is what is the connection between display_errors and server error number. I don't get it and php.com doesn't explain this at all.

Moreover I have set error_log but there is no erros logged in either display_errors is set 1 or 0. Does anybody have this problem be开发者_如何学运维fore?


Question is what is the connection between display_errors and server error number. I don't get it and php.com doesn't explain this at all.

display_errors is a PHP internal method that is used with errors coming from PHP. Server errors are coming from Apache and do not directly relate to PHP* (list of HTTP Status Codes)

* – although PHP is able to send HTTP Status Codes

0

精彩评论

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