但是我最想做的最后一件事情是通过每个文件的代码,检查是否需要链接,包含。 ..等等。
你知道是否有任何能够做到这一点的工具?
解决方案查看 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文件实际使用,哪些不是?
发布评论