Ben birçok PHP dosyaları oluşur büyük bir kompleks PHP proje var.
Dahil tüm dosyaların bir listesini döndürür benim kod çağırabilir bazı işlevi var mı?
get_included_files
veya get_required_files
(get_included_files
in takma)
http://us.php.net/manual/en/function.get-included-files.php
http://us.php.net/manual/en/function.get-required-files.php (Alias of get_included_files
)
<?php
// This file is abc.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";
}
?>
-----
The above example will output:
abc.php
test1.php
test2.php
test3.php
test4.php
Evet: get_included_files()
a>