时间:2021-07-01 10:21:17 帮助过:5人阅读
<?php
$file = "html/cache.txt";
$rename = "html/rename.txt";
if(rename($file,$rename)){
echo "更名成功";
}else{
echo "更名失败";
}
rename("html/cache2","html/cache3.txt");
rename("html","cache");
rename("file","html/files");
?>
常见错误分析:
检查语法,无问题;经查file目录不存在,导致错误。更为files编译成功
这个错误小啊,致命啊