Forum Moderators: coopster
This will work but only if "error_log" is set in php.ini:
$path = ini_get('error_log') ;
It doesn't work if "error_log" is commented.
Is there a way to always know the file that would be used?
I want to do this because I need to display the errors on a web page. So I plan to load the content of the error_log and display it.
Thanks
error.log in the logs directory above htdocs with apache. This is going to be difficult as the default location for this is server specific. There may be a work around.