PHP - Cleanup the Junk
<p>I have inherited a very messy project.  There are at least 3 versions that I can tell in it.  </p>

<p>Is there a utility that can trace the PHP code from the main index.php so that I can figure out what isn't being used and what is, or am I stuck doing a manual cleanup?</p>

<p>Thanks</p>

<p>*<strong><em>Update</em>*</strong></p>

<p>I don't think I've been clear about what I'm looking for, that or I'm not understanding how the products mentioned work.  What I'm looking for is something that can run on a folder (directory) and step through the project and give me a report of which files are actually referenced or used (in the case of images, CSS, etc).  </p>

<p>This project has several thousand files and it's a very small project.  I'm trying to clean it up and when I do a "search in files" in my IDE I get 3 or 4 references and can't easily tell which one is the right one.</p>

<p>Hope that makes it a little clearer.</p>
