如题所述
is_writable è¿ä¸ªå½æ°
1
2
3
4
5
6
7
8
<?php
$filename = 'test.txt';
if (is_writable($filename)) {
echo 'The file is writable';
} else {
echo 'The file is not writable';
}
?>
1
2
3
4
5
6
7
8
<?php
$filename = 'test.txt';
if (is_writable($filename)) {
echo 'The file is writable';
} else {
echo 'The file is not writable';
}
?>
温馨提示:答案为网友推荐,仅供参考