Re: ability to find include files...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sat, Nov 15, 2008 at 6:07 PM, bruce <bedouglas@xxxxxxxxxxxxx> wrote:
Hi list...

starting to go through a debug/understanding session of a couple of php web
apps. i'm wondering if there's any kind of tool/method that i can use to see
which files are accessed/included/required when a given page is displayed..

this would allow me to quickly understand the "flow" of the apps. searching
via google hasn't really turned up anything...

thoughts/comments/pointers welcome.

thanks!


Yes. How about get_included_files().

http://www.php.net/get_included_files

Andrew


This of course shows the included files but if you *really* need to go much deeper (although this is probably an overkill) you could try tracing when the process opens a file using strace along with grep if you are in unix.

--
Thodoris


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux