Topic: PHP code analysis (Page 1 of 1) Pages that link to <a href="" title="Pages that link to Topic: PHP code analysis (Page 1 of 1)" rel="nofollow" >Topic: PHP code analysis <span class="small">(Page 1 of 1)</span>\

Nervous Wreck (II) Inmate

From: Perth, Western Austrlia
Insane since: Oct 2004

IP logged posted posted 01-12-2007 08:54 Edit Quote

Hi All,
I have just had a bunch of PHP code (500+ Files !!) dumped on me by a workmate who is moving and as usual is undocumented. Can anyone suggest a good program that will parse all the include files and generate a report of all functions and classes?

it might also be helpfull but not necessary to list variables also.

Thxs in advance.


Maniac (V) Mad Scientist

From: Denver, CO, USA
Insane since: Aug 2000

IP logged posted posted 01-12-2007 16:40 Edit Quote

I know of no such program.

I do have this pearl to offer you: I occasionally use PHP Eclipse to work in PHP and SVN at the same time. One of the benefits of the program is that if you hover over a function used in the code that is referenced in an include file, an info window will display the location of the function & the parameters required for functionality.

That's the best I can do for you if the code itself is largely undocumented.


Nervous Wreck (II) Inmate

From: Perth, Western Austrlia
Insane since: Oct 2004

IP logged posted posted 01-15-2007 02:17 Edit Quote

In the imortal words of Homer Simpson Doh!

Unfortunatley Eclipse wont help, after reading throuh the code some of the files are dynamically included based on the position within the site and the type of data presented (they fuction like plugins), I was also debating just running them through a MSWord Macro to retrieve the any line that began with function but again because of the dynamic includes I gave up on that idea. The only solution that would work would be a runtime solution but even then you would have to run it multiple times to reach all the includes. Its a shame it is a really good CMS all my clients love it but it's a real pain to decipher the code.

Thanks anyway twItch^

Post Reply
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
Your Text:
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu