【www.gdgbn.com--php函数】
说明:file_exists($filepath);
本函数是用户判断当前给的文件名是否存了了,下面我们来看个实例。
$filepath = "./test.php";
if( file_exists($filepath) )
{
echo "文件存在";
}
else
{
echo "文件不存在";
}
输出结果为:文件存在了
本站原创转载注明www.111cn.net/phper/php.html
【www.gdgbn.com--php函数】
说明:file_exists($filepath);
本函数是用户判断当前给的文件名是否存了了,下面我们来看个实例。
$filepath = "./test.php";
if( file_exists($filepath) )
{
echo "文件存在";
}
else
{
echo "文件不存在";
}
输出结果为:文件存在了
本站原创转载注明www.111cn.net/phper/php.html