note 89404 deleted from inclued.examples-implementation by philip

From: Date: Thu, 16 Sep 2010 23:59:04 +0000
Subject: note 89404 deleted from inclued.examples-implementation by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-172662@lists.php.net to get a copy of this message
Note Submitter: david at palepurple dot co dot uk ---- The included 'gengraph.php' script expects to read serialized data; therefore a better usage example would be : <?php // Add this to the page you want to track includes on if(is_writeable('/tmp/wp.xx')) { if(function_exists('inclued_get_data')) { $clue = inclued_get_data(); file_put_contents('/tmp/wp.xx', serialize($clue)); } } ?> And to generate the human readable graph : # First, create the dot file $ php /path/to/inclued-src/gengraph.php -i /tmp/wp.xx -o wp.dot # Next, create the image $ dot -Tpng -o inclued.png wp.dot

« previous php.notes (#172662) next »