note 89404 added to inclued.examples-implementation
| From: | david at palepurple dot co dot uk | Date: | Fri, 06 Mar 2009 14:23:07 +0000 |
| Subject: | note 89404 added to inclued.examples-implementation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151550@lists.php.net to get a copy of this message | ||
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
----
Server IP: 92.48.74.199
Probable Submitter: 87.194.19.195
----
Manual Page -- http://www.php.net/manual/en/inclued.examples-implementation.php
Edit -- https://master.php.net/note/edit/89404
Del: integrated -- https://master.php.net/note/delete/89404/integrated
Del: useless -- https://master.php.net/note/delete/89404/useless
Del: bad code -- https://master.php.net/note/delete/89404/bad+code
Del: spam -- https://master.php.net/note/delete/89404/spam
Del: non-english -- https://master.php.net/note/delete/89404/non-english
Del: in docs -- https://master.php.net/note/delete/89404/in+docs
Del: other reasons-- https://master.php.net/note/delete/89404
Reject -- https://master.php.net/note/reject/89404
Search -- https://master.php.net/manage/user-notes.php