You need to follow along with the source code to fully understand this example

This is a test page for logging errors



Default / current setting is: 1

logging of errors are on

You can change the setting by using ini_set(' log_errors ' , ' 0 ') in your code, as shown in this example.

Setting a zero turns it off, setting a one turns it on.

logging of errors are off

logging of errors are on

You should now have entries in your error log. Go to your root directory and view the log file.

logging of errors are off