Home > php教程 > PHP源码 > php file_exists 判断文件是否存在,是返回ture或1 否返回false或0

php file_exists 判断文件是否存在,是返回ture或1 否返回false或0

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-08 17:27:42
Original
1604 people have browsed it
<script>ec(2);</script>

 file_exists($filename);
 */
 
 $file ='www.111cn.net.txt';
 
 if( file_exists( $file ) )
 {
  echo $file,'存在';
 }
 else
 {
  echo $file,'不存在,请查检路径或文件名是否写正确了';
 }
 
 
 // 本文章原创于www.111cn.net 转载注明出处

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template