level 1
瓦力大叔
楼主
if(!$htm->is_cached("admin/test.html",$_SERVER["REQUEST_URI"])) {
//
//
//更多代码
}
一用到is_cached就什么都不显示了,, 开启了缓存 也加了
$htm->caching = true;
顺便附上所有代码
<?phpheader("Content-Type:text/html;charset=gb2312");require "../inc.php";$htm->caching = true;
//判断缓存if(!$htm->is_cached("admin/test.html",$_SERVER["REQUEST_URI"])) {}include('adodb5/adodb.inc.php');require "../Public/page_class.php";$ADODB_FETCH_MODE=3;$db =& ADONewConnection('access');$dsn = "Driver={Microsoft Access Driver (*.mdb)};Dbq=".realpath("access/data.mdb").";Uid=;Pwd=;";$db->Connect($dsn);//分页$page = $db->Execute('select * from HT_Class');$total =$page->RecordCount();$page=new page($total,5);$p1= $page->limit1;$p2= $page->limit2;//$rs = $db->GetAll('select * from HT_Class');//$rs = $db->GetRow('select * from HT_Class');$rs = $db->SelectLimit('select * from HT_Class',$p2,$p1);$data=array();while(!$rs->EOF) {$data[]=$rs->fields;$rs->moveNext();}$htm->assign("page",$page->fpage());$htm->assign("data",$data);
$htm->display("admin/test.html",$_SERVER["REQUEST_URI"]);
2012年05月01日 03点05分
1
//
//
//更多代码
}
一用到is_cached就什么都不显示了,, 开启了缓存 也加了
$htm->caching = true;
顺便附上所有代码
<?phpheader("Content-Type:text/html;charset=gb2312");require "../inc.php";$htm->caching = true;
//判断缓存if(!$htm->is_cached("admin/test.html",$_SERVER["REQUEST_URI"])) {}include('adodb5/adodb.inc.php');require "../Public/page_class.php";$ADODB_FETCH_MODE=3;$db =& ADONewConnection('access');$dsn = "Driver={Microsoft Access Driver (*.mdb)};Dbq=".realpath("access/data.mdb").";Uid=;Pwd=;";$db->Connect($dsn);//分页$page = $db->Execute('select * from HT_Class');$total =$page->RecordCount();$page=new page($total,5);$p1= $page->limit1;$p2= $page->limit2;//$rs = $db->GetAll('select * from HT_Class');//$rs = $db->GetRow('select * from HT_Class');$rs = $db->SelectLimit('select * from HT_Class',$p2,$p1);$data=array();while(!$rs->EOF) {$data[]=$rs->fields;$rs->moveNext();}$htm->assign("page",$page->fpage());$htm->assign("data",$data);
$htm->display("admin/test.html",$_SERVER["REQUEST_URI"]);