"PHP file exists()"의 두 판 사이의 차이

 
9번째 줄: 9번째 줄:


==같이 보기==
==같이 보기==
* [[PHP filesize()]] - 파일 크기 얻기
* [[PHP is_readable()]] - 읽기가능인지 확인
* [[PHP is_readable()]] - 읽기가능인지 확인
* [[PHP is_writable()]] - 쓰기가능인지 확인
* [[PHP is_writable()]] - 쓰기가능인지 확인

2023년 2월 28일 (화) 12:03 기준 최신판

1 개요[ | ]

PHP file_exists()
  • 파일이 있는지 확인하는 PHP 함수
var_dump( file_exists("/etc/hosts") ); # bool(true)
var_dump( file_exists("/tmp/not-exist-file") ); # bool(false)

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}