Current Location: Home> Function Categories> is_writeable

is_writeable

is_writable alias
Name:is_writeable
Category:File system
Programming Language:php
One-line Description:is_writable() alias.

Definition and usage

is_writeable() function determines whether the specified file is writable.

This function is an alias for is_writable() function.

实例

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

输出:

test.txt is writeable

grammar

 is_writeable ( file )
parameter describe
file Required. Specify documents to be inspected.

illustrate

Return true if the file exists and is writable. The file parameter can be a directory name that allows for writable checks.

Similar Functions
  • Modify the owner of the symbolic link lchown

    lchown

    Modifytheownerofthes
  • Determine whether the given file name is writable is_writable

    is_writable

    Determinewhethertheg
  • Returns the file path information pathinfo

    pathinfo

    Returnsthefilepathin
  • Return the target of the symbolic link readlink

    readlink

    Returnthetargetofthe
  • Synchronize data (but not metadata) to a file fdatasync

    fdatasync

    Synchronizedata(butn
  • Create a new directory mkdir

    mkdir

    Createanewdirectory
  • Match file names with pattern fnmatch

    fnmatch

    Matchfilenameswithpa
  • Export buffered content to file fflush

    fflush

    Exportbufferedconten
Popular Articles