wyrd33 Posted March 9, 2006 Share Posted March 9, 2006 I want to display debug information in my cpanel's log file (the default log file where all of my PHP errors display). However, error_log() doesn't seem to want to work.This is what I have:error_log("test", 0);Thoughts? Thanks. Quote Link to comment Share on other sites More sharing options...
k.soule Posted March 10, 2006 Share Posted March 10, 2006 You may want to verify that error logging is enabled in the PHP.ini, specifically ' log_errors = On '; you can determine if it is on or not with phpinfo(), it is off by default. The 0 on the end is redudant, unless you are alternating the method of logging, system logged is the default behavior. Quote Link to comment Share on other sites More sharing options...
wyrd33 Posted March 10, 2006 Author Share Posted March 10, 2006 I have that set in my code:ini_set("log_errors", 1);Any other ideas? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.