<?php
require_once('Cache/Lite/Output.php');
$option = array(
'cacheDir' => 'D:/tmp/',
'lifeTime' => 60);
$cache = new Cache_Lite_Output($option);
$cache->remove($date);//清除以前的某块缓存
if(! ($cache->start($date))) {
echo $date;
$cache->end();
}
$date=date("Y-m-d H:i:s");
$cache->clean();//清除缓存
?>
这样定对不对
$date=date("Y-m-d H:i:s"); 应该放在哪个位置
为什么运行的时候报错 Warning: opendir(D:/tmp/) [function.opendir]: failed to open dir: No such file or directory in D:\AppServ\www\lianxi\cache\Lite.php on line 611
require_once('Cache/Lite/Output.php');
$option = array(
'cacheDir' => 'D:/tmp/',
'lifeTime' => 60);
$cache = new Cache_Lite_Output($option);
$cache->remove($date);//清除以前的某块缓存
if(! ($cache->start($date))) {
echo $date;
$cache->end();
}
$date=date("Y-m-d H:i:s");
$cache->clean();//清除缓存
?>
这样定对不对
$date=date("Y-m-d H:i:s"); 应该放在哪个位置
为什么运行的时候报错 Warning: opendir(D:/tmp/) [function.opendir]: failed to open dir: No such file or directory in D:\AppServ\www\lianxi\cache\Lite.php on line 611
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货