【问题标题】:View Which Files Were Loaded查看加载了哪些文件
【发布时间】:2014-09-11 17:13:24
【问题描述】:

有没有办法查看项目中加载了哪些文件?我正在将 PHPStorm 与 Xdebug 一起使用,我想看看是否有多余的文件,以及需要哪些文件。程序运行了,但是框架中有很多文件没有被使用,如何查看应用程序需要哪些文件,哪些是多余的?

【问题讨论】:

  • 你的意思是像get_included_files这样的东西吗?
  • 好的,太好了。无需投票;)
  • 在 google 中搜索 php View Which Files Were Loaded,这正是您的问题的标题以及“php”,会找到该 php 函数的手册页作为第一个结果。

标签: php include phpstorm xdebug require


【解决方案1】:

有一个简单的 PHP 函数,get_included_files():

http://php.net/manual/en/function.get-included-files.php

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-09-03
    • 2023-04-06
    • 2011-07-04
    • 2010-12-14
    • 2018-09-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多