Thinkphp的缓存清除,Runtime的路径应该怎么写?

浏览:2849 发布日期:2016/11/11 分类:求助交流 关键字: Runtime
Runtime的路径应该怎么写
public function deldir(){
if(IS_POST){
$deldir = I('deldir');
if(file_exists($deldir)){
$ret['status'] = 1;
}else{
$ret['status'] = 0;
}
$dh = opendir($deldir);
while ($file = readdir($dh)) {
if ($file != "." && $file != "..") {
$fullpath = $deldir . "/" . $file;
if (!is_dir($fullpath)) {
unlink($fullpath);
} else {
deldir($fullpath);
}
}
}
$this->ajaxReturn($ret);
}
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>