Statement on glibc/iconv Vulnerability

SplFileInfo::isWritable

(PHP 5 >= 5.1.2, PHP 7, PHP 8)

SplFileInfo::isWritableTells if the entry is writable

Açıklama

public SplFileInfo::isWritable(): bool

Checks if the current entry is writable.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Returns true if writable, false otherwise;

Örnekler

Örnek 1 SplFileInfo::isWriteable() example

<?php
$info
= new SplFileInfo('locked.jpg');
if (!
$info->isWriteable()) {
echo
$info->getFilename() . ' is not writeable';
}
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

locked.jpg is not writeable

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top