php判断文件是否可写实例代码
程序员文章站
2022-06-03 12:38:38
...
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;
}
?>