is_writeable
is_writableエイリアス
is_writeable()
関数は、指定されたファイルが書き込み可能かどうかを決定します。
この関数はis_writable()
関数のエイリアスです。
<?php $ file = "test.txt" ; if ( is_writable ( $ file ) ) { echo ( " $ file is writeable" ) ; } それ以外 { echo ( " $ file is not not writable" ) ; } ?>
输出:
test.txtは書き込み可能です
is_writable ( file )
パラメーター | 説明する |
---|---|
ファイル | 必須。検査するドキュメントを指定します。 |
ファイルが存在し、書くことができる場合はtrueを返します。ファイルパラメーターは、書き込み可能なチェックを可能にするディレクトリ名です。