首頁 >後端開發 >php教程 >php判断文件是否可写实例代码_PHP教程

php判断文件是否可写实例代码_PHP教程

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原創
2016-07-13 17:42:36742瀏覽

php判断文件是否可写:

$filename = test.txt;
if (is_writable($filename)) {
        echo The file is writable;
} else {
        echo The file is not writable;
}
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/486050.htmlTechArticlephp判断文件是否可写: ?php $filename = test.txt; if (is_writable($filename)) { echo The file is writable; } else { echo The file is not writable; } ?...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn