PHP. Руководство по PHP. 2005
get_included_files
get_included_files
Description
array get_included_files (void)Returns an array of the names of all files that have been included using include(), include_once(), require() or require_once().
The script originally called is considered an "included file," so it will be listed together with the files referenced by include() and family.
Files that are included or required multiple times only show up once in the returned array.
Замечание: Files included using the auto_prepend_file configuration directive are not included in the returned array.