Get PHP to display only warnings and errors

How to install PHP to display warnings and errors, and not to display notifications?

0
source share
1 answer

Put this in your php.inifile:

error_reporting = E_ERROR | E_WARNING
display_errors  = 1

EDIT . As @Felix said, you should probably show these notifications. They are there for some reason.

+3
source

Source: https://habr.com/ru/post/1795612/


All Articles