Home > Backend Development > PHP Tutorial > PHP determines whether a file is writable Example code_PHP tutorial

PHP determines whether a file is writable Example code_PHP tutorial

WBOY
Release: 2016-07-13 17:42:36
Original
735 people have browsed it

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; } ?...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template