Hi,
I'm working with a complex web app that has hundreds of php scripts. When I call index.php, another script, test.php (made up name) gets called and executed. However, index.php doesn't include the script directly. It includes several other PHP files, which undoubtedly includes others, and somewhere in that big mess, test.php gets included.
I'm wondering if there was a way to place a line of code IN TEST.PHP which will output the script which included it. This way I could trace how it gets called.
By the way, I've tried simply running a search for "test.php", which I assumed would lead me to
include("test.php");
However it wasn't found. So I'm guessing that it was included by
include($script);
and $script was defined from the database. Or something weird like that.
Any help appreciated! Thanks!