我修正了其中一点点小小小的问题
<?php
/*
* FileName : cache.inc.php
* Link : http://blog.csdn.net/dxflingxing/
* Author : dxflingxing
* Date : 2006-5-9
* Last Modified : 2006-5-16
* Version : 1.0.1
* Descrīption : Cache a page in file formart
* Notice : Make sure you cache file dir can be readed and wrote
*
* Thanks to : 小邪,barryonline(寒)
************************************************************
*
* Usage :
* # Cache active time half an hour
* # This Can Auotmatic make some none exist dirs
* # Or you can use an cache file in curent dir
* # The Usage Such as
* # $cache = new cache(string cache_name,int seconds);
*
* require ('cache.inc.php');
* $cache = new cache('dir1/dir2/cache_name.htm',60*30);
*
* $cache->start();
*
* # Your Page Contents With print
* phpinfo();
*
* $cache->_end();
*
*/
class cache {
var $_file;
var $cache_time;
function cache($_file='_index.htm',$cache_time=1) {
$this->_file = $_file;
$this->cache_time = $cache_time;
}
/*
* Start cache method without Return
*/
function start() {