I am looking to delete php files that are no longer used on my site. I can use something like get_included_files to display the included files, but that would mean that I would have to put it on every child page. If I put it on the parent page, it will not show me the child page that called it.
Does anyone else face a similar situation? If so, what did you do to remove unused php files?
The best and most effective way is to manually view all the files and choose which ones are no longer in use. Thus, you delete all those that you do not need, and do not accidentally delete them that you still need. You really should not rely on an automated process for something like this.
We hope you put files that do not interact with browsers in your own directory. If so, then it is relatively easy to use grepto find out what still includes or requires them.
grep
, , , . , HTML, .
. , , , .
animuson , /, , , , "". . apc cache ttl 0 , () /. ., , . nWire. , / apc , , , , , ///.
, , - . , script , , -, . , . , , . (, , Sitemap , ), script , .
Other ways to do this other than boot php for this is to use the apache module, I hope this gives you some ideas.
Source: https://habr.com/ru/post/1737213/More articles:SQL Compact Edition Database Corruption - .netTextarea Add space to top of text? - htmlIs it possible to have ampersands ("&") in the url before the query string? - redirectОдно ограничение проверки или несколько контрольных ограничений? - sqlHow efficient is extracting a Python substring? - performancewinforms databinding best practices - c #How to refresh a webpage using a server side task? - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1737216/adding-folders-to-a-git-repository-while-ignoring-some-subfolders&usg=ALkJrhhWV0ZsHKOT3u-k21a0tyuGg7terALearning Web Programming - javascriptОбнаружение и поиск луч пересечения против кубического треугольника безье - mathAll Articles