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