C
C
Chvalov2015-12-09 13:46:17
PHP
Chvalov, 2015-12-09 13:46:17

How to hide the output of php errors while writing them to the log?

How to hide the error output of a php script at the Apache level, so that they are written to the log?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-12-09
@gangstarcj

display_errors: none put.
It's actually easy to googling

C
Chvalov, 2015-12-09
@Chvalov

error_reporting(0);
ini_set('display_errors', 0);
-----------------------------
php_admin_flag display_errors off

M
Max, 2015-12-09
@MaxDukov

set_error_handler - set your own error handler, write errors to the log.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question