1 개요[ | ]
- PHP file_exists()
- 파일이 있는지 확인하는 PHP 함수
PHP
Copy
var_dump( file_exists("/etc/hosts") ); # bool(true)
var_dump( file_exists("/tmp/not-exist-file") ); # bool(false)
Loading
2 같이 보기[ | ]
- PHP filesize() - 파일 크기 얻기
- PHP is_readable() - 읽기가능인지 확인
- PHP is_writable() - 쓰기가능인지 확인
- is_file() - 일반파일인지 확인
- file() - 파일전체를 배열로 읽기
- 함수 file_exists()
3 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.