php判断文件是否可写实例代码
来源:网络 责任编辑:栏目编辑 发表时间:2013-07-01 15:17 点击:次
php判断文件是否可写:
<?php
$filename = test.txt;
if (is_writable($filename)) {
echo The file is writable;
} else {
echo The file is not writable;
}
?>
<?php
$filename = test.txt;
if (is_writable($filename)) {
echo The file is writable;
} else {
echo The file is not writable;
}
?>
相关新闻>>
- 发表评论
-
- 最新评论 更多>>