最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php判断文件是否存在file_exists 与 is_file详解
时间:2011-02-10 编辑:简简单单 来源:一聚教程网
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存在';
}
相关文章
- xampp怎么运行php文件 02-24
- php文件怎么打开?php文件打开教程 02-24
- php 格式种子文件怎么打开 02-23
- php怎么打开exe文件 php文件中如何调用在服务器上的exe文件 02-23
- php文件怎么打开 如何执行php文件 02-22
- php格式怎么打开?php格式种子文件怎么打开 02-22