English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

PHP Grundlagenanleitung

PHP Fortgeschrittene Anleitung

PHP & MySQL

PHP Referenzhandbuch

Verwendung und Beispiel der PHP is_writeable() Funktion

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().

Syntax

bool is_writeable(string $filename)

Online-Beispiel

<?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

PHP Date und Zeit Referenzhandbuch