error_log in the same directory as included files?
问题 I've researched different methods and directives including: auto_prepend_file .user.ini files getcwd() debug_backtrace() And I can't seem to find a way to change the path of the error_log to log in the same path as the file being included/required. For example, say index.php has the line: include('subdir/file.php'); If subdir/file.php has a syntax error, forcing php to create subdir/error_log , rather than the default behavior of creating error_log in the same path as index.php , auto_prepend