source3.php 305 B

123456789101112131415
  1. <?php
  2. // This file is example#1
  3. // from http://www.php.net/manual/en/function.get-included-files.php
  4. include 'test1.php';
  5. include_once 'test2.php';
  6. require 'test3.php';
  7. require_once 'test4.php';
  8. $included_files = get_included_files();
  9. foreach ($included_files as $filename) {
  10. echo "$filename\n";
  11. }