欢迎各位兄弟 发布技术文章
这里的技术是共享的
file_exists() 函数检查文件或目录是否存在。
1 2 3 4 5 6 7 8 | <?php$filename = '/path/to/foo.txt';if (file_exists($filename)) { echo "The file $filename exists";} else { echo "The file $filename does not exist";}?> |