Unix and Linux Discussions Tagged with php |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
11,373 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
10,874 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
23,002 |
Programming |
|
|
|
8 |
13,897 |
What is on Your Mind? |
|
|
|
1 |
14,982 |
What is on Your Mind? |
|
|
|
0 |
16,984 |
Programming |
|
|
|
18 |
12,753 |
What is on Your Mind? |
|
|
|
4 |
15,748 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
12,359 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
6,730 |
UNIX for Beginners Questions & Answers |
|
|
|
20 |
8,471 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
51,396 |
What is on Your Mind? |
|
|
|
0 |
9,657 |
News, Links, Events and Announcements |
|
|
|
3 |
34,636 |
What is on Your Mind? |
|
|
|
3 |
2,081 |
What is on Your Mind? |
|
|
|
1 |
2,533 |
Shell Programming and Scripting |
|
|
|
3 |
7,839 |
Web Development |
|
|
|
3 |
2,552 |
Shell Programming and Scripting |
|
|
|
6 |
4,195 |
What is on Your Mind? |
|
|
|
1 |
6,424 |
Web Development |
|
|
|
6 |
6,257 |
What is on Your Mind? |
|
|
|
2 |
3,072 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
5,629 |
What is on Your Mind? |
|
|
|
6 |
7,294 |
Web Development |
|
|
|
4 |
6,381 |
What is on Your Mind? |
|
|
|
0 |
4,771 |
Web Development |
|
|
|
0 |
4,276 |
Web Development |
|
|
|
48 |
26,880 |
Web Development |
|
|
|
2 |
2,509 |
What is on Your Mind? |
|
|
|
1 |
6,779 |
Cybersecurity |
|
|
|
0 |
10,839 |
Web Development |
|
|
|
0 |
3,899 |
What is on Your Mind? |
|
|
|
4 |
2,438 |
Shell Programming and Scripting |
|
|
|
1 |
4,382 |
What is on Your Mind? |
|
|
|
5 |
11,840 |
Shell Programming and Scripting |
|
|
|
7 |
3,056 |
Shell Programming and Scripting |
|
|
|
0 |
2,027 |
What is on Your Mind? |
|
|
|
2 |
9,076 |
Web Development |
|
|
|
4 |
3,320 |
Shell Programming and Scripting |
|
|
|
1 |
9,364 |
Shell Programming and Scripting |
GET_INCLUDED_FILES(3) 1 GET_INCLUDED_FILES(3)
get_included_files - Returns an array with the names of included or required files
SYNOPSIS
array get_included_files (void )
DESCRIPTION
Gets the names of all files that have been included using include(3), include_once(3), require(3) or require_once(3).
RETURN VALUES
Returns an array of the names of all files.
The script originally called is considered an "included file," so it will be listed together with the files referenced by include(3) and
family.
Files that are included or required multiple times only show up once in the returned array.
EXAMPLES
Example #1
get_included_files(3) example
<?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
";
}
?>
The above example will output:
abc.php
test1.php
test2.php
test3.php
test4.php
NOTES
Note
Files included using the auto_prepend_file configuration directive are not included in the returned array.
SEE ALSO
include(3), include_once(3), require(3), require_once(3), get_required_files(3).
PHP Documentation Group GET_INCLUDED_FILES(3)