Results 1 to 1 of 1
Hi Friends ,
Please help....
I want to genarate dependancy graph of a php file.
I used the inclued method described in
PHP: Example that implements inclued into an application ...
- 04-15-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 1
Output digraph from a dot file using php
Hi Friends
,
Please help....
I want to genarate dependancy graph of a php file.
I used the inclued method described in
PHP: Example that implements inclued into an application - Manual PHP:Example that implements inclued into an application - Manual[/B]
I have copied the inclued details of a file using
<?php
if(is_writeable('/home/timslapp/public_html/krtcnte/maps/admin_surfStatsCron.php.json')) {
if(function_exists('inclued_get_data')) {
$clue = inclued_get_data();
file_put_contents('/home/timslapp/public_html/krtcnte/maps/admin_surfStatsCron.php.json', serialize($clue));
}
}
?>
and I got all the inclued details in admin_surfStatsCron.php.json
Then I created the dot file using the passthru() function as
<?php
passthru('php /usr/local/lib/php/gengraph.php -i /home/timslapp/public_html/krtcnte/maps/admin_surfStatsCron.php.json -o admin_surfStatsCron.dot');
?>
As a result admin_surfStatsCron.dot is generated in the folder krtcnte. The file contains the digraph details.
Now I want to Map it. I want to generate the graph from the dot file.
I executed the command 'dot -Tpng -o inclued.png /home/timslapp/public_html/krtcnte/admin_surfStatsCron.dot' using php's passthru(), exec(), system(), shell_exec() etc. . But no use . There is no output.
Please help me!!.....


Reply With Quote