服务器上呢,经常需要有程序写日志或其他写的操作.
所以呢,就用这段小程序试一下你的目录下是否有写的权限吧. ^_^
[CODE:]
$filename = './editor/UploadFile/test1.txt';
if (is_writable($filename)) {
echo 'The file is writable';
} else {
echo 'The file is not writable';
}
?>
if (is_writable($filename)) {
echo 'The file is writable';
} else {
echo 'The file is not writable';
}
?>
然后放个test1.txt到上面的目录里
测一下看看有没有权限吧~
测一下看看有没有权限吧~