error_log specifies the address of the error log that cannot be saved
2021-10-14 16:12:37
0
4
857

error_log('error_func',3,'error_log.txt');error_log.txt error log is written in, and all goes to apache/logs/error.log

reply all(1)
逆旅行人

image.pngI tried it and it works. Please take a look at the path where your php file is located. You can also set the error_log log directory in php.ini

  • reply OK, thanks. Later I found out that I entered the parameter E_USER_WARNING when calling set_error_handle, and then did not enter the parameter when trigger_error, calling the default one, so the error log was not written.
    author 2021-10-15 11:38:34
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template