유용한 함수 get_included_files > 퍼블리셔팁

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

퍼블리셔팁

퍼블리싱과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.

유용한 함수 get_included_files 정보

HTML 유용한 함수 get_included_files

본문

가끔 에디터로 프로그램 작업을 하다 보면
 
어떤 파일이 인클루드 되었는지 헷갈릴때가 있습니다.
그럴때 이전에 어떤 파일들이 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"
;
}

추천
8

댓글 7개

전체 797
퍼블리셔팁 내용 검색 HTML에서

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT