Re: Need tool to graphically show all includes/requires
| From: | Roman Neuhauser | Date: | Sat, 20 Jan 2007 12:46:02 +0000 |
| Subject: | Re: Need tool to graphically show all includes/requires | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247436@lists.php.net to get a copy of this message | ||
# daevid@daevid.com / 2007-01-19 16:52:49 -0800:
> 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.
That's impossible to tell exactly without running the software you're
studying. What would you map this to?
function include_($file) { include $file; }
Or this?
define('FOO_INLCUDE_DIR', '/some/path');
include FOO_INLCUDE_DIR . '/file.php';
The recursive part is easy:
find $topsrcdir -name \*.php -print0 | xargs -0n1 processing-script-for-one-file
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991