테스트 사이트 - 개발 중인 베타 버전입니다

유용한 함수 get_included_files

· 13년 전 · 1147 · 7
가끔 에디터로 프로그램 작업을 하다 보면
 
어떤 파일이 인클루드 되었는지 헷갈릴때가 있습니다.
그럴때 이전에 어떤 파일들이 include 나 require 되었는지 확인하는 함수 입니다.
 
get_included_filesReturns an array with the names of included or required files
 
array get_included_files ( void )
Gets the names of all files that have been included using include(), include_once(), require() or require_once().
 
 
사용법
$included_files get_included_files();

foreach (
$included_files as $filename
) {
    echo 
"$filename\n"
;
}

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 7개

아니 이럴수가!!!!!!


추천 버튼이 없네요.
13년 전
아 이런 함수가 있었다니!! OTL 유용하겠습니다.
추천~!!
추천 버튼이 사라졌네요 ... 그래도 추천 !!!
추천 버튼이 사라진 고로 댓글로 추천합니당!!!
헐.함수의 세계의 끝은 대체 어디란말인가....

감사합니다!!
추천합니다.!

게시글 목록

번호 제목
15265
26093
15262
3437
15257
3429
15256
15252
15251
15250
15246
15242
3425
3418
15236
3411
15233
15229
15228
15226
3399
15224
15217
15195
15193
3373
3360
15188
29852
15181
15159
3350
15158
15157
15152
15150
3334
15144
15140
3331
15136
29848
15129
15107
3320
15106
15095
29847
15094
3314
15091
15089
29834
15088
3303
15085
15084
26091
15083
15073
15071
3290
24301
15067
3285
3270
15064
29829
15062
15053
3261
3252
3249
15050
3243
15046
24291
24278
3231
15042
24275
3225
26075
15041
3222
3218
15025
15024
15018
29821
15015
15013
15012
3210
3200
3198
24274
15005
3188
15001