English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP Filesystem Référence Manuel
La fonction is_writeable() peut vérifier si un fichier spécifique est inscriptible. Si le fichier est inscriptible, cette fonction peut retourner true. C'est un alias de la fonction is_writable().
bool is_writeable ( string $filename )
<?php $file = "/PhpProject/php/phptest.txt"; if(is_writeable($file)) { echo ("$file est inscriptible"); } else { echo ("$file est inscriptible"); } ?>
Résultat de la sortie
/PhpProject/php/phptest.txt est inscriptible