I'd like to change the location PHP error log file to the same directory as the PHP file that caused the error.
So for example if a PHP file resides in domainname.com/httpdocs/classes/ and a error occurs a error log file is created in the same directory. This seems a bit harder to achieve than I anticipated.
I have been able to change the error log location to the document root of the domain by setting: error_log = "{DOCROOT}{\}error_log" in the PHP ini file. But I am not sure how to change the error log setting to use the same directory as the PHP file that caused the error.
Any one has any suggestions?
So for example if a PHP file resides in domainname.com/httpdocs/classes/ and a error occurs a error log file is created in the same directory. This seems a bit harder to achieve than I anticipated.
I have been able to change the error log location to the document root of the domain by setting: error_log = "{DOCROOT}{\}error_log" in the PHP ini file. But I am not sure how to change the error log setting to use the same directory as the PHP file that caused the error.
Any one has any suggestions?