小白教程
所有教程
关于
Search
172.69.58.199
172.69.58.199
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func filesystem is writeable”的源代码
本页内容
上一节:
Func_filesystem_is_writable
下一节:
Func_filesystem_link
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:is_writeable()}}[[Category:PHP Filesystem 文件系统参考手册|52]] = PHP is_writeable() 函数 = [[Category:PHP Filesystem 文件系统参考手册]] == 定义和用法 == is_writeable() 函数检查指定的文件是否可写。 如果文件可写,该函数返回 TRUE。 该函数是 is_writable() 函数的别名。 == 语法 == <pre> is_writeable(file) </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | file | 必需。规定要检查的文件。 |} == 提示和注释 == '''注释:'''该函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。 <sample title="" desc="" lang="php" hererun="1"> <?php $file = "test.txt"; if(is_writeable($file)) { echo ("$file is writeable"); } else { echo ("$file is not writeable"); } ?> </sample> 上面的代码将输出: <pre> test.txt is writeable </pre> [[Category:PHP Filesystem 文件系统参考手册]]
返回至“
Func filesystem is writeable
”。
上一节:
Func_filesystem_is_writable
下一节:
Func_filesystem_link