如何判断哪些PHP文件实际使用,哪些不是?

编程入门 行业动态 更新时间:2024-10-27 02:30:42
本文介绍了如何判断哪些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文件实际使用,哪些不是?

本文发布于:2023-10-23 00:23:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519189.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何判断   文件   PHP

发布评论

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

>www.elefans.com

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