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 "該文件不可寫"; } ?>