<?php
$file = "123.txt";
if(is_writeable($file))
{
echo ("$file可写");
}
else
{
echo ("$file不可写");
}
?>
PHP is_writeable() 函数判断指定的文件是否可写
最新推荐文章于 2025-09-11 21:23:01 发布

<?php
$file = "123.txt";
if(is_writeable($file))
{
echo ("$file可写");
}
else
{
echo ("$file不可写");
}
?>