欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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;
}
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/486050.htmlTechArticlephp判断文件是否可写: ?php $filename = test.txt; if (is_writable($filename)) { echo The file is writable; } else { echo The file is not writable; } ?...