Closed Thread Icon

Topic awaiting preservation: PHP code analysis Pages that link to <a href="https://ozoneasylum.com/backlink?for=28819" title="Pages that link to Topic awaiting preservation: PHP code analysis" rel="nofollow" >Topic awaiting preservation: PHP code analysis\

 
Author Thread
iconian
Nervous Wreck (II) Inmate

From: Perth, Western Austrlia
Insane since: Oct 2004

posted posted 01-12-2007 08:54

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.

Matthew

twItch^
Maniac (V) Mad Scientist

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

posted posted 01-12-2007 16:40

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.

-svd

iconian
Nervous Wreck (II) Inmate

From: Perth, Western Austrlia
Insane since: Oct 2004

posted posted 01-15-2007 02:17

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^

« BackwardsOnwards »

Show Forum Drop Down Menu