首页 >后端开发 >php教程 >php判断文件是否可写实例代码_PHP教程

php判断文件是否可写实例代码_PHP教程

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-07-13 17:42:36743浏览

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; } ?...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn