Watch 1 Star 2 Fork 147

深圳优创智投科技有限公司 / uctooPHP

forked from uctoo / uctoo 
Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
UCToo是一套简单,易用,开源的微信增值应用开发框架。技术选型thinkphp,opencenter,wechat-php-sdk,weui,jquery... spread retract

Clone or download
cc.php 891 Bytes
Copy Edit Web IDE Raw Blame History
uctoo authored 2016-04-07 11:31 . 更新opencenter至V2.0版本
<?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;
}
?>

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/UCT/uctoo.git
git@gitee.com:UCT/uctoo.git
UCT
uctoo
uctoo
master

Help Search