显示包含请求的php页面?(Show included php pages of a request?)

系统教程 行业动态 更新时间:2024-06-14 17:01:34
显示包含请求的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.

更多推荐

本文发布于:2023-04-20 18:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/d329a0996c839f491543f9ccd3eabb1c.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页面   Show   php   request   pages

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!