显示包含请求的php页面?(Show included php pages of a request?)
我想知道是否有可能以某种方式知道并最终显示在单个http请求期间处理的所有php页面。
例如,如果页面是/index.php我想调用页面并立即知道获取响应所需的所有包含的php页面是什么,而没有显然调试页面...
也许通过日志,或转储?
I wonder if it's possible in some way to know and eventually show all the php pages processed during a single http request.
For example, if the page is /index.php I'd like to call the page and to know immediately what are all the included php pages required to get the response, without obviously debugging the page...
Maybe through logs, or dump?
最满意答案
有get_included_files方法。
获取使用include,include_once,require或require_once包含的所有文件的名称。
There is get_included_files method.
Gets the names of all files that have been included using include, include_once, require or require_once.
更多推荐
发布评论