현재 페이지내 인클루드한 php파일 목록을 알수있습니다.
<?php
// 현재파일 test.php
include 'test1.php';
include_once 'test2.php';
require 'test3.php';
require_once 'test4.php';
$included_files = get_included_files();
foreach ($included_files as $filename) {
echo "$filename\n";
}
?>
결과값
test.php
test1.php
test2.php
test3.php
test4.php