is_file()和file_exists()

判断文件是否存在,用函数 is_file(),
判断目录是否存在,用函数 is_dir(),
不确定传入的参数是文件还是目录的时候用file_exists。

posted @ 2015-03-17 17:25  在阳光下飞翔  阅读(285)  评论(0编辑  收藏  举报