Whether the phpis_writable function file is writable. The following describes whether the is_writable file can be read and written. The following describes whether the is_writable file can be read and written. Is_writable (in PHP4, in PHP5) is_writable-The following describes whether the is_writable file can be read and written.
The following describes whether the is_writable file can be read and written.
Is_writable
(PHP 4 and PHP 5)
Is_writable-tell whether filename is written
Description
Boolean is_writable (string $ file name)
Returns TRUE if the object exists and can be written. This file name parameter may be a directory name that allows you to check if it is a writable directory.
Remember that the PHP Web server that can access the file's user id runs (usually 'Who '). The limitation of the security mode is not taken into account.
Parameters
File name
The file name being checked.
Return value
Returns TRUE if the object exists and can be written.
Instance
Example of #1 is_writable ()
$ Filename = 'test.txt ';
If (is_writable ($ filename )){
Echo 'The file is writable ';
} Else {
Echo 'The file is not writable ';
}
?>
Whether the hosts file can be read and written. The following describes whether the is_writable file can be read and written. Is_writable (PHP 4, PHP 5) is_writable-tell is...