reverse engineer PHP+HTML files, not object oriented ones, to produce a diagram [closed]

▼魔方 西西 提交于 2019-12-11 16:31:36

问题


What's a good tool to reverse engineer a set of php/html pages ? It's not object oriented, it's a big mess that started in early 2000 (so no UML tools obviously!). I'd like to draw a link between files/functions that are included or called via the 'action' attribute of a form.

So basically, I would like to have a nice simple diagram to have a clear idea of how is structured a site, what variable are passed between pages through "action", the arguments of functions, in a //diagram// !

Javascript have no impact on the flow of pages here.

Don't tell me that my only hope is to write a big filthy tool to do that ?!?

Thanks-


回答1:


You can use xdebug to generate a cachegrind file and then use Kcachegrind to view the diagram.



来源:https://stackoverflow.com/questions/4861107/reverse-engineer-phphtml-files-not-object-oriented-ones-to-produce-a-diagram

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!