源来页 公告 登陆

file_exists()函数检测文件或者夹是否存在

composer @Ta
2018-08-03 01:41

<?php
$filename = '/path/to/foo.txt';//检查的文件

if (file_exists($filename)) {
    echo "The file $filename exists";//存在
} else {
    echo "The file $filename does not exist";//不存在
}
?>
阅:2629 发表于2018-08-03 01:41
#php教程
评论:

[code] [color] 《url》 《img》nochat:[pb] [hsb] [hbq]


返回源来页/返回首页


天合之作 曲在人意

心灵鸡汤:
      奇怪的是,当他死去,所有人才开始爱他。

®2019-2025 all power by Zlproject3.7
川公网安备 51192202000151号
蜀ICP备2021014921号-2 首页 #top

本网站由提供CDN加速/云储存服务

天合之作 曲在人意