php判断文件是否可写实例代码_PHP教程
程序员文章站
2022-05-29 18:00:43
...
php判断文件是否可写:
$filename = test.txt;
if (is_writable($filename)) {
echo The file is writable;
} else {
echo The file is not writable;
}
?>
$filename = test.txt;
if (is_writable($filename)) {
echo The file is writable;
} else {
echo The file is not writable;
}
?>