<?php class cache { var $cacheRoot = "./cache/"; var $cacheLimitTime = 3; var $cacheFileName = ""; var $cacheFileExt = "php"; function cache( $cacheLimitTime ) { if( intval( $cacheLimitTime ) ) $this->cacheLimitTime = $cacheLimitTime; $this->cacheFileName = $this->getCacheFileName(); ob_start(); } function cacheCheck(){ if( file_exists( $this->cacheFileName ) ) { $cTime = $this->getFileCreateTime( $this->cacheFileName ); if( $cTime + $this->cacheLimitTime > time() ) { echo file_get_contents( $this->cacheFileName ); ob_end_flush(); exit; } } return false; }
????? ??? ??? ???? ? ?? ??? ??? ??? ??? ????. ???? ?? ???? ?? ??? ??? ??? ?? M? ???? ??? ? ????? ?? ???????. ?? ??, ob_start() ?? ???? ?? ??? ??? ??? ???? ????? ??? ??? ??? ??? ???? ?????. ob_get_contents, [?? ob_end_clean? ?? ?? ???? ?? ??? ??? ? ??? ? ??? ???? ? ??? ? ????
? ???? ?? ???? ???? ????? ?? ???? ????? ????????. ?????? ???? ?? ??????! ? ???? ?? ???? ?? ?????? ?????. ??? ???? ???? ??? ????. ??? ??? ?? ??? ?? ??? ???? ????! ??? ?? ?? ??? ???? ????? ????. ???: admin@php.cn
?? ??

29 Jul 2016
pfsvoddata.bbv ??? ?????? PHP ?? ?? ??? ?????? ??? ??? ????: function createHashDir($sign) { $md5 = md5($sign); (MB_CACHE)) mkdir(MB_CACHE ); for($i=1;$i<=4;$i ) { $dir .= $md5{$i}.'/'; if(!is_dir(MB_CACHE.$dir) )) { mkdir(MB_CACHE.$dir);

29 Jul 2016
??: ??? ??? ?? PHP ?? ??? ??? ?????. ??? ?? ??? ?????. <?php Define('CACHE_ROOT', dirname(__FILE__).'/cache') //?? ?? ???? ??('CACHE_TIME', 1800) ) ;//?? ?? ??? ????. Define('CACHE_FIX','.html') $CacheName=md5($_SERVER['REQUEST_URI']).CACHE_FIX;

29 Jul 2016
?? ??: ?? ?? PHP ?? ???? ???: ?? ?? ??? ??? ????. <? //========================== ===== ===================== // ?? ?: // $download=new download('php,exe,html',false); // if(! $download->downloadfile($filename)) // {


??? ??

??? ?? ????? PHP ?????
??? ?? ????? PHP ?????

50?? ??? ??? PHP ???? ??
??? PHP ????, ??? ????? ??? ???? ?????

??? ???? ?? ?? PHP ?????
??? ???? ?? ?? PHP ?????
