find out which files are called

Hello

I have a php website. I am trying to trace (find out) which files are called when a page is displayed.

For example on certain pages that get displayed it may call up to 6-7 files. I would like to know the name of the files and the order they are called.

As through out the code there is a lot of

include_once(“global/global.libs.php”);

Is there any may to easily trace this without having to go through page by page on the code and try to figure out what is happening.

Essentially I just want the file name eg global/global.libs.php logged somewhere

Thanks in advance

Sorry if late, but for the future reference:

https://www.php.net/manual/en/function.debug-print-backtrace.php

Otherwise, just use xdebug.

1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service