English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP Date und Zeit Referenzhandbuch
Die Funktion is_writeable() kann überprüfen, ob eine bestimmte Datei schreibbar ist. Wenn die Datei schreibbar ist, gibt diese Funktion true zurück. Es ist ein Alias für die Funktion is_writable().
bool is_writeable(string $filename)
<?php $file = "/PhpProjekt/php/phptest.txt"; if(is_writeable($file)) { echo("$file ist schreibbar"); } else { echo("$file ist nicht schreibbar"); } ?>
Ausgaberesultat
/PhpProjekt/php/phptest.txt ist schreibbar