PHP警告:get_included_files()期望0个参数,[重复]中给出1

This question already has an answer here:

I'm trying to uploade and use an old script i made way back, but it gives me an error:

PHP Warning: get_included_files() expects exactly 0 parameters, 1 given in

session_start();
ob_start();


get_required_files('config.php');
get_required_files('funksjoner.php');
</div>

get_required_files (alias of get_included_files()) does not accept any parameters. It will return an array with all the included files (include, include_once, require and require_once).

A working example (from the reference of get_included_files()):

<?php
include 'test1.php';
include_once 'test2.php';
require 'test3.php';
require_once 'test4.php';

// Get all included files
$included_files = get_included_files();

// Loop the files and show the filenames
foreach ($included_files as $filename) {
    echo "$filename
";
}
?>

If you want to include a file, just use "include":

<?php
include 'config.php';
include 'funksjoner.php';
?>