PHP 웹프로그래밍
[파일 디렉토리함수] file_exits() 파일이 존재하는지 확인합니다.
파일이 존재하는지 확인합니다.
boolean file_exits(string 파일명);
<?
if(file_exits("text.txt")){
echo "test.txt exists";
}else{
echo "test.txt not exists";
}
?>
boolean file_exits(string 파일명);
<?
if(file_exits("text.txt")){
echo "test.txt exists";
}else{
echo "test.txt not exists";
}
?>