卫生么会出现这段话
Warning: file_get_contents(): Filename cannot be empty in /Library/WebServer/Documents/text/index.php on line 20
Warning: file_get_contents(): Filename cannot be empty in /Library/WebServer/Documents/text/index.php on line 20
2017-03-24
Warning: file_get_contents(): Filename cannot be empty in /Library/WebServer/Documents/text/index.php on line 20
2017-03-24
发现老师代码里面漏了加上文件重命名之后的path,应该也是要加到表单的隐藏域里面的 ,不然重命名文件成功之后还是会跳到主目录。
2017-03-16
我把代码改成不允许文件内容为空 -。-
if ($content) {
if (file_put_contents($filename, $content)) {
$mes = "文件修改成功";
}else {
$mes = "文件修改失败";
}
alertMes($mes, $redirect);
}else {
$mes = "文件内容不能为空";
alertMes($mes, $redirect);
}
if ($content) {
if (file_put_contents($filename, $content)) {
$mes = "文件修改成功";
}else {
$mes = "文件修改失败";
}
alertMes($mes, $redirect);
}else {
$mes = "文件内容不能为空";
alertMes($mes, $redirect);
}
2017-03-15