如何判断哪些PHP文件实际使用,哪些不是? [英] How to tell which PHP files are actually used and which are not?
问题描述
但是我最想做的最后一件事情是通过每个文件的代码,检查是否需要链接,包含。 ..等等。
你知道是否有任何能够做到这一点的工具?
查看 phpxref ,它可以做你所需要的。
交叉引用PHP类,函数,变量,常量和require / include用法。
I got a large PHP website which I'm now about to take care of. It contains hundreds of separate PHP files, but I suspect only less than a half is really being used. Most of them probably can be deleted.
But the last thing I really want to do is going through the code of each file and check whether its linked, included, required...etc. to others or whether it can be safely deleted.
Do you know whether there's any tool which is capable of doing this?
Take a look at phpxref, It might do what you need.
Cross-references PHP classes, functions, variables, constants and require/include usage.
这篇关于如何判断哪些PHP文件实际使用,哪些不是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!