zoukankan      html  css  js  c++  java
  • PHP is_writable() 函数

    定义和用法

    is_writable() 函数检查指定的文件是否可写。

    如果文件可写,该函数返回 TRUE。

    语法

    is_writable(file)
    参数描述
    file 必需。规定要检查的文件。

    提示和注释

    注释:该函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。


    实例

    <?php
    $file = "test.txt";
    if(is_writable($file))
    {
    echo ("$file is writeable");
    }
    else
    {
    echo ("$file is not writeable");
    }
    ?>

    上面的代码将输出:高佣联盟 www.cgewang.com

    test.txt is writeable
  • 相关阅读:
    django rest_framework中将json输出字符强制为utf-8编码
    Java
    Java
    Oracle
    IDEA
    Ubuntu
    Ubuntu
    Ubuntu
    Ubuntu
    Oracle
  • 原文地址:https://www.cnblogs.com/yc10086/p/13025797.html
Copyright © 2011-2022 走看看