定义和用法is_writeable() 函数检查指定的文件是否可写。 如果文件可写,该函数返回 TRUE。 该函数是 is_writable() 函数的别名。 语法is_writeable(file)
提示和注释注释:该函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。 实例<?php$file = "test.txt";if(is_writeable($file)) { echo ("$file is writeable"); }else { echo ("$file is not writeable"); }?> 上面的代码将输出: test.txt is writeable
下载地址: PHP is_writable() 函数 PHP link() 函数 |