PHP : Function Reference : PHP Options&Information : get_required_files
Examples ( Source code ) » get_required_files
<?php
// This file is abc.php
include 'test1.php';
include_once 'test2.php';
require 'test3.php';
require_once 'test4.php';
$required_files = get_required_files();
foreach ($included_files as $filename) {
echo "$filename\n";
}
?>
The above example will output:
copy to clipboard
abc.php
test1.php
test2.php
test3.php
test4.php
|