首页 >php教程 >php手册 >php判断文件是否可写实例代码

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-13 10:41:03963浏览

php判断文件是否可写:

$filename = test.txt;
if (is_writable($filename)) {
        echo The file is writable;
} else {
        echo The file is not writable;
}
?>

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