I have a large web app, and I think there are a bunch of old files that are no longer being used, is there an app which can tell me what these files are?
A:
You should be able to start with your web server logs. These will show you which files ARE being used. From there you should be able to track down a good number of the files those reference. Don't know of a good way to find out which aren't being used, only those that are.
No Refunds No Returns
2009-11-28 04:22:04
This is what I was thinking, but I'd like to not have to write a program to parse over them.
Unkwntech
2009-11-29 10:33:28
This would not work for files include()d internally.
Pekka
2010-03-27 16:36:54
A:
I think you need to check out the project management tools available for php.
You can have a look at phpUnderControl (http://www.phpundercontrol.org/about.html) and CruiseControl (you can google it).
You can also use a tool (i.e and IDE) that will give a Code Coverage Report.
andreas
2010-03-27 16:24:12
+1
A:
There is also the Dead Code Detector (DCD). It finds functions that are never called, which may help to clean up even the files you keep in production.
toscho
2010-03-27 22:10:56