當前位置: 首頁> 函數類別大全> is_writeable

is_writeable

is_writable 的別名
名稱:is_writeable
分類:文件系統
所屬語言:php
一句話介紹:is_writable() 的別名。

定義和用法

is_writeable()函數判斷指定的文件是否可寫。

該函數是is_writable()函數的別名。

實例

<? php
$ file = “ test.txt” ;
如果( is_writable ( $ file ) )
  {
  echo ( “ $ file是可寫的” ) ;
  }
別的
  {
  echo ( “ $ file不可寫” ) ;
  }
? >

輸出:

 test.txt是可以寫的

文法

is_writeable ( file )
參數 描述
file 必需。規定要檢查的文件。

說明

如果文件存在並且可寫則返回true。 file參數可以是一個允許進行是否可寫檢查的目錄名。

同類函數
  • 獲取文件類型 filetype

    filetype

    獲取文件類型
  • 改變文件模式 chmod

    chmod

    改變文件模式
  • is_writable 的別名 is_writeable

    is_writeable

    is_writable的別名
  • stream_set_write_buffer 的別名 set_file_buffer

    set_file_buffer

    stream_set_write_buf
  • 用模式匹配文件名 fnmatch

    fnmatch

    用模式匹配文件名
  • 提供有關文件的信息 stat

    stat

    提供有關文件的信息
  • 修改符號鏈接的所有組 lchgrp

    lchgrp

    修改符號鏈接的所有組
  • 獲取文件所有者 fileowner

    fileowner

    獲取文件所有者
熱門文章