본문으로 바로가기

[PHP] file_exists 함수

category Helloworld!/PHP 2013. 5. 22. 11:29

 

file_exists

- 파일이 있는지 없는지 확인하는 함수

- 파일이 있으면 true, 

  파일이 없으면 false를 반환한다.

 

ex)

$FileExtist = file_exists('C:/Users/shaking/Documents/test.txt'); if ( !$FileExtist ) {  	echo "Cannot find the File"; }

참고 사이트

php.net : http://php.net/manual/kr/function.file-exists.php

이동마이의 컴퓨터 하루 : http://idongmai.wo.tc/221