List of Include files?
Posted: Fri Feb 06, 2009 5:38 am
Is there any way I can get a list of the files that I have included in a php script.
We have a large and complex number of PHP pages which we use, what I need is some way to print out a list of the pages which I have included during the execution of a php script. So lets say I have a main page which then includes another page which then includes 2 other pages, what I need is to be able to call a command and get a list of all the files that were included.
Obviosuly I could just add some sort of array to hold the values as I go along but that would mean changing literally thousands of pages of code.
Any ideas?
Another thing I'd like to add to that would be to get the run time of when the page was included.
We have a large and complex number of PHP pages which we use, what I need is some way to print out a list of the pages which I have included during the execution of a php script. So lets say I have a main page which then includes another page which then includes 2 other pages, what I need is to be able to call a command and get a list of all the files that were included.
Obviosuly I could just add some sort of array to hold the values as I go along but that would mean changing literally thousands of pages of code.
Any ideas?
Another thing I'd like to add to that would be to get the run time of when the page was included.