欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

PHP is_writeable() 函數(shù)

定義和用法

is_writeable() 函數(shù)判斷指定的文件是否可寫。

該函數(shù)是 is_writable() 函數(shù)的別名。

語法

is_writeable(file)
參數(shù) 描述
file 必需。規(guī)定要檢查的文件。

說明

如果文件存在并且可寫則返回 true。file 參數(shù)可以是一個允許進行是否可寫檢查的目錄名。

提示和注釋

注釋:本函數(shù)的結(jié)果會被緩存。請使用 clearstatcache() 來清除緩存。

例子

<?php
$file = "test.txt";
if(is_writeable($file))
  {
  echo ("$file is writeable");
  }
else
  {
  echo ("$file is not writeable");
  }
?>

輸出:

test.txt is writeable