How can a PHP programmer identify orphaned PHP files or images for sure? -
If C / C ++ programmers want to organize a large C or C ++ project, then it may remove some code files (* * * *]
.c, * .h, * .ccp, ...) thinks that it is likely to be orphaned. When it starts the compiler, and it runs without errors, then it was right. When the compiler throws errors, because the extracted files are required, the programmer has to ensure that a special code file is actually necessary for a large project.
We have a large web project here, which was written in PHP that contains many PHP files and image files. The problem is that there is no compiler for large PHP based web projects.
One person reads the article here 10 or 15 years ago. In this article, a solution to get the same result of the C / C ++ projector for a PHP project as a C / C ++ programmer reveals that it will use its compiler. He only remembered the fact that this solution exists, but he lost that article and he forgot the solution in detail.
Does anyone know if such solutions exist? If so, what's the name? What are the URLs? Key words for search engines etc?
Precise solution does not exist. The reason for this is that PHP is free to do any where it wants, it can produce on any production basis. It is impossible (verbally) it can be determined what it can be.
Not all are lost, because usually PHP programs do not use it, so we can get a set of files which are necessary and the rest are probably not most likely we would be lucky.
The correct Google word is static analysis . I have not used any such tool for PHP, so you can not give specific, but they exist. Another way would be that you have a test case covering some methodology and then you get a code coverage report from it, more likely to remember this stuff, but still give some good insight Which part is used.
Comments
Post a Comment