Re: Re: Need tool to graphically show all includes/requires
| From: | Andre Dubuc | Date: | Sat, 20 Jan 2007 13:57:19 +0000 |
| Subject: | Re: Re: Need tool to graphically show all includes/requires | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247440@lists.php.net to get a copy of this message | ||
On Saturday 20 January 2007 07:35 am, Colin Guthrie wrote:
> Daevid Vincent wrote:
> > We have a fairly complex product that is all PHP based GUI.
> >
> > We're in need of some kind of "graphical tool" (web, stand alone, windows,
> > linux, osx whatever) that will take a directory tree, recursively traverse
> > all the files, look for 'includes' and 'requires' (and the _once
> > versions
> > too) and then map them out so we can see what files are calling what and
> > where.
> >
> > Anyone suggest something?
> >
>
> My colleague wrote a script that used dot to generate such a pattern but
> this is more or less useless for us now that we use the autoloading
> features of PHP5...
>
> If I can fid the script I'll post it, but not sure where it went.
>
> Also if you use variables in the include/require, then it will fail most
> horribly.
>
> Col.
>
Just a thought following on Colin's idea. YIf you can't find anything to do the job, you
should be able to modify 'staviz' that uses dot to graphically
show log files - clickthroughs to various pages. The code should at least give you the structure you
could fool around with.
Hth,
Andre