Custom error log in PHP

software development

#1

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/site.com/logs/debug.log”);

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

Any ideas?


#2

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