I am working with an annoyingly complicated Joomla! site and having to do some customisation to the layout at the code level.
My problem is finding what files to edit.
So, given a certain page, can I log a list of files that get opened during the parsing of it?
Tada, here it is: https://www.php.net/get+included+files
get_included_files()The comment in the documentation regarding only getting the directly included files is wrong. You always get ALL files included up to the point of execution, regardless of where you make the call to the function.
Output:
So if you want to know all files, dumping them is best placed at the end of the file that is called first, e.g. your usual
index.php.