diff --git a/reference/inclued/examples.xml b/reference/inclued/examples.xml
index fa970b4777..bdc6d0900b 100644
--- a/reference/inclued/examples.xml
+++ b/reference/inclued/examples.xml
@@ -12,7 +12,7 @@
- Getting the data from inclued
+ Getting the data within the PHP application itself (function)
+
+
+ Listing data via inclued dumps (configuration)
+
+ When using the inclued.dumpdir
+ directive, files (include clues) are dumped with every request. Here's one
+ way to list those files, and unserialize them.
+
+
+count() === 0) {
+ echo 'No clues today', PHP_EOL;
+ exit;
+ }
+
+ foreach ($inclues as $inclue) {
+
+ echo 'Inclued file: ', $inclue->getFilename(), PHP_EOL;
+
+ $data = file_get_contents($inclue->getPathname());
+ if ($data) {
+ $inc = unserialize($data);
+ echo ' -- filename: ', $inc['request']['SCRIPT_FILENAME'], PHP_EOL;
+ echo ' -- number of includes: ', count($inc['includes']), PHP_EOL;
+ }
+ echo PHP_EOL;
+ }
+} else {
+ echo 'I am totally clueless today.', PHP_EOL;
+}
+?>
+]]>
+
+ &example.outputs.similar;
+
+
+
+
+
diff --git a/reference/inclued/ini.xml b/reference/inclued/ini.xml
index 95d28c152e..3db54b193b 100644
--- a/reference/inclued/ini.xml
+++ b/reference/inclued/ini.xml
@@ -63,7 +63,9 @@
Location (path) to the directory that stores inclued files. If set, each
- PHP request will create a file.
+ PHP request will create a file. These files are serialized versions of
+ what inclued_get_data would produce, so may be
+ unserialized with unserialize.