Custom error log in PHP

software development


I am trying to debug a script and I want the errors to go into a custom debugging log but I am having no luck in generating this file. This is odd because I do this all the time on other shared hosts but am new to how things are done on Dreamhost.

Here is my command:

error_log(“Error Message”, 3, “/home/account/”);

The ‘debug.log’ never gets generated. Furthermore, the boolean returned from the error_log function is false.

Any ideas?


Check to see that the file exists and that the user under which you run PHP has permission to write (append) to it.