1 Star 0 Fork 41

xuegan / ThinkWechat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cc.php 891 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
softtime 提交于 2016-05-25 16:52 . 项目初始化
<?php
$dirname = './Runtime/';
//清文件缓存
$dirs = array($dirname);
if(function_exists('memcache_init')){
$mem = memcache_init();
$mem->flush();
}
header('Content-Type:text/html;charset=utf-8');
//清理缓存
foreach($dirs as $value) {
rmdirr($value);
echo "".$value."\" 已经被删除!缓存清理完毕。 ";
}
@mkdir($dirname,0777,true);
function rmdirr($dirname) {
if (!file_exists($dirname)) {
return false;
}
if (is_file($dirname) || is_link($dirname)) {
return unlink($dirname);
}
$dir = dir($dirname);
if($dir){
while (false !== $entry = $dir->read()) {
if ($entry == '.' || $entry == '..') {
continue;
}
rmdirr($dirname . DIRECTORY_SEPARATOR . $entry);
}
}
$dir->close();
return rmdir($dirname);
}
function U(){
return false;
}
?>
PHP
1
https://gitee.com/null_397_3348/ThinkWechat.git
git@gitee.com:null_397_3348/ThinkWechat.git
null_397_3348
ThinkWechat
ThinkWechat
master

搜索帮助

14c37bed 8189591 565d56ea 8189591