1 year ago

#76783

test-img

tony

php.ini configuration: display all errors and warnings but only log errors

As the title suggests, I would like PHP to display all errors and warnings (E_ALL) but I would like to only log the errors (E_ALL & ~E_NOTICE & ~E_STRICT) is that possible?

Here is how I have my php.ini configured:

error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On

Running PHP 8.1.1

Thanks!

php

configuration

0 Answers

Your Answer

Accepted video resources