UK ['raɪtəbl] US ['raɪtəbəl]
adj. Can be written down, can be written down
php is_writable() function syntax
Function:Judge whether the file is writable
Syntax: is_writable(file)
##Parameters:
Description | |
Required. Specifies the documents to be checked. |
Description: Returns true if the file exists and is writable. The file parameter can be a directory name that allows writability checking.
php is_writable() function example
<?php $file = is_writable("./test.txt"); if($file == 1) { echo "该文件是可写的"; }else{ echo "该文件不可写"; } ?>