Notice»

Recent Post»

Recent Comment»

Recent Trackback»

Archive»

« 2025/6 »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
06-08 09:21

php 함수 file_exists

programming/PHP | 2014. 1. 10. 20:57 | Posted by Work Ant

특정경로에 파일 또는 디렉토리가 있는지 없는지 검사하는 함수


<?php

$filepath = '/img/11111.jpg';


if(file_exists($filepath)){

echo "존재함";

}

else{

echo "없음";

}

?>

: