无为清净楼资源网 Design By www.qnjia.com

is_file() 函数检查指定的文件名是否是正常的文件。

is_file — Tells whether the filename is a regular file

用法:
bool is_file ( string $filename ) $file 为必选参数
如果文件存在且为正常的文件则返回 TRUE。

先来看一个实例一:

<"\n";
var_dump(is_file('/usr/bin/')) . "\n";
"htmlcode">
<"htmlcode">
<"." AND $file<>"..")
{
if (is_file($path.'/'.$file))
{
@unlink($path.'/'.$file);
}
if (is_dir($path.'/'.$file))
{
deletefolder($path.'/'.$file);
@rmdir($path.'/'.$file);
}
}
}
}
}
?>

此函数将删除所有文件与文件夹。

以上所述就是本文的全部内容了,希望大家能够喜欢。

标签:
PHP,is_file()

无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com