php判断文件是否存在file_exists 与 is_file详解
$file ='新建文本文档.txt';
$file1 = 'a.txt' ; list( $name , $ext ) = explode ( '.' , $file ); echo $name ; if ( is_file ( $name . '.txt' ) ) { echo 'file存在' ; } if ( file_exists ( $file1 ) ) { echo 'file1存在' ; }
查看更多关于php判断文件是否存在file_exists 与 is_file详解 - ph的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did27897