오래된 글들/Gentlecat's Job

파일 확장자 뽑아내기..

젠틀캣 2008. 11. 26. 17:41
방법1.
$chk_file = explode('.', 파일명);
$chk_file_ex = $chk_file[sizeof($chk_file)-1];

방법2.
$tmp = pathinfo ( 파일경로 );
$exe = tmp['extension'];