如何判断哪些PHP文件实际使用,哪些不是? [英] How to tell which PHP files are actually used and which are not?

查看:150
本文介绍了如何判断哪些PHP文件实际使用,哪些不是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大PHP网站,我现在要照顾。它包含数百个单独的PHP文件,但我怀疑只有不到一半被真正使用。大多数人可能会被删除。



但是我最想做的最后一件事情是通过每个文件的代码,检查是否需要链接,包含。 ..等等。



你知道是否有任何能够做到这一点的工具?

解决方案

查看 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆