is_writeable
is_writable alias
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
is_writeable ( file )
parameter | describe |
---|---|
file | Required. Specify documents to be inspected. |
Return true if the file exists and is writable. The file parameter can be a directory name that allows for writable checks.