Here is a talk about whether the Is_writable file can be read and write Oh.
Here is a talk about whether the Is_writable file can be read and write Oh.
Is_writable
(PHP 4, PHP 5)
Is_writable-Tell if filename is written
Describe
Boolean is_writable (string $ file name)
Returns true if the file exists and is writable. The file name parameter may be a directory name, allowing you to check if the directory is writable.
Keep in mind that PHP can access the file's user ID for the Web server to run (usually ' who '). The security mode limit is not taken into account.
Parameters
Filename
The name of the file being checked.
return value
Returns true if the file exists and is writable.
Instance
Example # 1 is_writable () example
$filename = ' test.txt ';
if (is_writable ($filename)) {
Echo ' The file is writable ';
} else {
Echo ' The file is not writable ';
}
?>
http://www.bkjia.com/PHPjc/445468.html www.bkjia.com true http://www.bkjia.com/PHPjc/445468.html techarticle here is a talk about whether the Is_writable file can be read and write Oh. Here is a talk about whether the Is_writable file can be read and write Oh. Is_writable (PHP 4, PHP 5) is_writable-Tell is ...