![]() |
|||
PHP
IT Tags
Simplexml Parser php mail UPDATE connection to MYSQL ajax server shutdown magento ecommerce check domain Stop Script mysql server associative arrays XHTML SimpleXML sdf Mobile site Remove Duplicate Xampp local server my_thread_global_end Combo box indexing solr photo gallery control panel Overlapping Layers include Solr XML objects PHP and FLash multiple file uplo local server |
Is there a utility out there that will show me all includesI am working at a new job debugging lots of php that has been written by coders who are LONG gone and I`m wondering if there is such an animal available that will show me all of the includes that make up the output of a php script; i.e. when I go to a web page that is made of php, it`ll show me what files make up that page. CommentsA quick hunt around PHP.net and you`ll find get_included_files Real Programmers don`t comment their code. If it was hard to write, it should be hard to understand. No worries. It`s also worth looking at http://php.net/debug_backtrace and http://php.net/debug_print_backtrace which can be used to provide a trace from the current point in code out to the top of the call stack - so if you`re 5 functions calls deep it will let you know what each function call was and where (file + line) it was called. |
