English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP Filesystem Reference Manual
The is_writeable() function can check if a specified file is writable. If the file is writable, this function can return true. It is an alias of the is_writable() function.
bool is_writeable ( string $filename )
<?php $file = "/PhpProject/php/phptest.txt if(is_writeable($file)) { echo("$file is writable"); } else { echo("$file is not writable"); } ?>
Output Result
/PhpProject/php/phptest.txt is writable