개요
- PHP file_exists()
- 파일이 있는지 확인하는 PHP 함수
var_dump( file_exists("/etc/hosts") ); # bool(true)
var_dump( file_exists("/tmp/not-exist-file") ); # bool(false)
같이 보기
- PHP filesize() - 파일 크기 얻기
- PHP is_readable() - 읽기가능인지 확인
- PHP is_writable() - 쓰기가능인지 확인
- is_file() - 일반파일인지 확인
- file() - 파일전체를 배열로 읽기
- 함수 file_exists()