Search code examples
phperror-logaccess-logini-set

Disable logging through ini_set() in PHP?


I would like to disable logging (access_log and error_log) on my server. Is this possible through the function ini_set()? If it is, how do you do it?


Solution

  • Use the following code:

    ini_set("log_errors", 0);