国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

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

PHP ??? ?? ???

Jul 25, 2016 am 09:10 AM

  1. /* $cache = new Cache("../cache/",20) // ???, ?? ??? ?? ??

  2. $cache->PutCache(); // ?? ??
  3. */
  4. class Cache
  5. {
  6. private $CacheDir = 'Cache' / * ?? ????*/
  7. private $SetTimeOut = 10; /* ?? ?? ??*/
  8. private $SetExt = '.cache' /* ?? ?? ??? ??*/
  9. private $CacheFileUrl = '' ; * ?? ?? ?? */
  10. private $CacheConfigFile = ''; /* ?? ?? ?? ??*/

  11. public $LastUnixTimePoke = 0 /* ??? ?? Unix ????? * /

  12. public $CurrentUnixTimePoke = 0;/* ?? ??? Unix ?????*/
  13. public $NextUnixTimePoke = 0; /* ?? ??? Unix ?????*/
  14. public $ UnixNowToNext = 0; ??? ?? ??*/

  15. public $LastTimePoke = 0; /* ??? ?? ??*/

  16. public $ CurrentTimePoke = 0;/* ?? ??? ?? */
  17. public $NextTimePoke = 0; /* ?? ?? ??*/

  18. public $DataLength = 0; /* ?? ?? ??? ??*/

  19. public $ CacheToPage = ''; /* ?? ?? ??*/
  20. private $SplitTeam = false /* ?? ??? ???? ???? ??*/

  21. < ;p>public $Cache = false; /* ??? ???? ??? ???? ???? ??? ? ????*/

  22. private $_IsCache = false /* ??? ???? ??*/

    p>?? ?? Cache($SetTimeOut = 20,$CacheDir = 'Cache',$SplitTeam = false,$SetExt = '.cache')
  23. {
  24. $this->CacheDir = $CacheDir;
  25. $this->SplitTeam = $SplitTeam;
  26. if(!is_numeric($SetTimeOut))
  27. {
  28. $this->ErrResponse('?? ?? ?? ??? ???????.') ;
  29. false ??;
  30. } else {
  31. $this->SetTimeOut = $SetTimeOut;
  32. }
  33. $this->SetExt = $SetExt;

  34. < p>/* ?? ??*/
  35. ob_clean();
  36. ob_start();
  37. ob_implicit_flush(0);
  38. $this->CreateCache();
  39. true ?? ;
  40. }

  41. ??? ?? CreateCache()

  42. {
  43. $_CacheFile = str_replace('.','_',basename($_SERVER['PHP_SELF' ])) . '_' .
  44. md5(basename($_SERVER['PHP_SELF'])) . $this->SetExt;
  45. $_CacheConfig = str_replace('.','_',basename( $_SERVER[ 'PHP_SELF'])) . '_' .'.cof';

  46. if(!file_exists($this->CacheDir))

  47. {
  48. mkdir( $this->CacheDir,0777);
  49. }

  50. if($this->SplitTeam)

  51. {
  52. $_CacheConfigDir = $this -> CacheDir . str_replace('.','_',basename($_SERVER['PHP_SELF'])) . '_/';
  53. if(!file_exists($_CacheConfigDir))
  54. {
  55. mkdir( $_CacheConfigDir,0777);
  56. }
  57. $_CacheUrl = $this->CacheDir . $_CacheFile;
  58. $_CacheConfigUrl = $_CacheConfigDir .
  59. } else {
  60. $_CacheUrl = $this->CacheDir . $_CacheFile;
  61. $_CacheConfigUrl = $this->CacheDir $_CacheConfig;
  62. }

  63. < p>if(!file_exists($_CacheUrl))
  64. {
  65. $hanld = @fopen($_CacheUrl,"w");
  66. @fclose($hanld);
  67. }< ;/p> ;
  68. if(!file_exists($_CacheConfigUrl))

  69. {
  70. $hanld = @fopen($_CacheConfigUrl,"w");
  71. @fclose($hanld) ;
  72. }

  73. $this->CacheConfigFile = $_CacheConfigUrl;

  74. $this->CacheFileUrl = $_CacheUrl;
  75. $this->CheckCache( );
  76. true? ?????.
  77. }
  78. ??? ?? CheckCache()

  79. {
  80. $_FileEditTime = @filemtime($this->CacheFileUrl);
  81. $_TimeOut = $this->SetTimeOut ;
  82. $_IsTimeOut = $_FileEditTime $_TimeOut;

  83. $this->LastUnixTimePoke = $_FileEditTime;

  84. $this->NextUnixTimePoke = $_IsTimeOut;
  85. $this->CurrentUnixTimePoke = time();
  86. $this->UnixNowToNext = $this->NextUnixTimePoke - time();

  87. $this->LastTimePoke = date("??? H:i:s",$_FileEditTime);

  88. $this->NextTimePoke = ??("??? H:i:s",$_IsTimeOut);
  89. $this->CurrentTimePoke = date("Y-m-d H:i:s",time());

  90. $_TxtInformation = "??? ?? ?????: $this->LastUnixTimePoke ";

  91. $_TxtInformation .= "?? ?? ?????: $this->CurrentUnixTimePoke ";
  92. $_TxtInformation .= "?? ?? ?????: $this->NextUnixTimePoke ";

  93. < p>$_TxtInformation . = "??? ?? ??: $this->LastTimePoke ";
  94. $_TxtInformation .= "?? ?? ??: $this->CurrentTimePoke ";
  95. $_TxtInformation .= "?? ?? ??: $this- >NextTimePoke ";

  96. $_TxtInformation .= "?? ?? ???: $this->UnixNowToNext ";

  97. $handl = @ fopen($this->CacheConfigFile,'w');

  98. if($handl)
  99. {
  100. @fwrite($handl,$_TxtInformation);
  101. @fclose($handl);
  102. }

  103. if($_IsTimeOut >= time())

  104. {
  105. $this->GetCacheData()
  106. }
  107. }
  108. ??? ?? ClearCacheFile()

  109. {
  110. @unlink($this->CacheFileUrl);
  111. @unlink($ this->CacheConfigFile);
  112. }

  113. ?? ?? PutCache()

  114. {
  115. $this->DataLength = ob_get_length();
  116. $ PutData = ob_get_contents();
  117. if(!file_exists($this->CacheFileUrl))
  118. {
  119. $CreateOK = $this->CreateCache();
  120. if(!$CreateOK)
  121. {
  122. $ this->ErrResponse('?? ??? ???? ? ??? ???? ?? ?? ??? ??????');
  123. return false;
  124. }
  125. } else {
  126. $hanld = @fopen($ this->CacheFileUrl,"w");
  127. if($hanld)
  128. {

  129. if(@is_writable($this-> CacheFileUrl))

  130. {
  131. @flock($hanld, LOCK_EX);
  132. $_PutData = @fwrite($hanld,$PutData);
  133. @flock($hanld, LOCK_UN);
  134. if(!$_PutData )
  135. {
  136. $this->ErrResponse('?? ?? ??? ??? ??? ? ????.');
  137. return false;
  138. } else {
  139. @fclose($hanld );
  140. true? ??;
  141. }
  142. } else {
  143. $this->ErrResponse('?? ??? ? ? ????.');
  144. false? ??;
  145. }
  146. } else {

  147. $this->ErrResponse('?? ??? ? ? ???? ??? ??????.');

  148. return false;
  149. }
  150. }
  151. }< ;/p>
  152. ?? ?? GetCacheData()

  153. {
  154. $hanld = @fopen($this->CacheFileUrl,"r");
  155. if($hanld)
  156. {
  157. if(@is_reader($this->CacheFileUrl))
  158. {
  159. $this->CacheToPage = @file_get_contents($this->CacheFileUrl);
  160. $IsEmpty = count(file($this->CacheFileUrl)); //?? ??? ?? ??? ??

  161. if($IsEmpty > 0)

  162. {
  163. echo $ this->CacheToPage;
  164. @fclose($hanld);
  165. ob_end_flush();
  166. exit();
  167. }
  168. } else {
  169. $this->ErrResponse( '?? ?? ??? ?? ?????.');
  170. return false;
  171. }
  172. } else {
  173. $this->ErrResponse('?? ??? ?? ?????.');
  174. return false ;
  175. }
  176. }

  177. ??? ?? ErrResponse($Msg)

  178. {
  179. echo $Msg;
  180. }
  181. }
  182. ? >

?? ??


? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1600
29
PHP ????
1502
276
???
PHP ?? ??? ??????? PHP ?? ??? ??????? Jul 17, 2025 am 04:16 AM

PHP ?? ??? ?? ???? ?? ? ????? ??? ?????. 1. ?? ??? ??? ??? ??? ? ? ??? ??? ??? ?? ?? ??? ???? ???????. 2. ?? ??? ???? ???? ? ?? ????? ?? ?? ?? ??? ?????. 3. $ _get ? $ _post? ?? Hyperglobal ??? ?? ???? ?? ??? ? ??? ??? ??????? ???????. 4. ?? ?? ?? ???? ?? ?? ?? ??? ?????? ?? ??? ??? ?? ??? ???????. ??? ??? ????? ??? ??? ?? ???? ????? ? ??? ? ? ????.

PHP?? ?? ???? ???? ???? ??? ?????? PHP?? ?? ???? ???? ???? ??? ?????? Jul 08, 2025 am 02:37 AM

PHP ?? ???? ???? ????? ?? ? ??? ???? ?? ?? ? ??? ???? ?? ??? ?????? ??? ??? ? ? ???????. 1. ??? ?? CSRF? ???? ?? ??? ??? ???? ?????? ??? ???? FINFO_FILE? ?? ?? MIME ??? ?????. 2. ??? ??? ??? ???? ??? ?? ??? ?? ? WEB ????? ??? ???? ??????. 3. PHP ?? ??? ?? ? ?? ???? NGINX/APACHE? ??? ????? ?? ???? ?????. 4. GD ?????? ??? ? ?? ???? ??? ?? ??? ?? ????.

PHP?? ?? ?? PHP?? ?? ?? Jul 18, 2025 am 04:57 AM

PHP ?? ???? ? ?? ???? ??? ????. 1. // ?? #? ???? ? ?? ??? ???? // ???? ?? ????. 2. ?? /.../ ?? ?? ?? ??? ????? ?? ? ?? ??? ?? ? ? ????. 3. ?? ?? ?? / if () {} /? ?? ?? ??? ????? ??? ?? ?? ?? ??? ???? ????? ???? ??? ?? ???? ???? ??? ? ??? ??????.

PHP?? ???? ??? ?????? PHP?? ???? ??? ?????? Jul 11, 2025 am 03:12 AM

Ageneratorinphpisamemory- ???? Way-Erate-Overgedatasetsetsbaluesoneatimeatimeatimeatimallatonce.1.generatorsuseTheyieldKeywordTocroadtOpvaluesondemand, RetingMemoryUsage.2

PHP ?? ?? ? PHP ?? ?? ? Jul 18, 2025 am 04:51 AM

PHP ??? ???? ??? ??? ??? ????? ????. ??? ????? ?? ???? ??? "?? ? ?"??? "?"? ???????. 1. ??? ? ??? ??? DocBlock (/*/)? ?? ?? ??? ???? ??? ? ?? ???? ??????. 2. JS ??? ???? ?? ???? ??? ?? ??? ??? ?????. 3. ??? ?? ?? ?? ??? ???? ????? ????? ???? ?? ????? ???? ? ??????. 4. Todo ? Fixme? ????? ???? ? ? ??? ??? ???? ?? ?? ? ??? ???????. ??? ???? ?? ??? ??? ?? ?? ?? ???? ???? ? ????.

?? PHP : ??? ??? ?? PHP : ??? ??? Jul 18, 2025 am 04:54 AM

tolearnpheffectical, startBysetTupaloCalserErverEnmentUsingToolslikexamppandacodeeditor -likevscode.1) installxamppforapache, mysql, andphp.2) useacodeeditorforsyntaxsupport.3)) 3) testimplephpfile.next, withpluclucincludechlucincluclucludechluclucled

PHP?? ??? ? ???? ??? ????? ?? PHP?? ??? ? ???? ??? ????? ?? Jul 12, 2025 am 03:15 AM

PHP??? ???? ??? ?? ?? ????? ???? ??? ?? ??? ??? ?? ? ??? ??? ???? ?????. ???? 0?? ???? ?? ??? ???? ? ?? ???? ?? ?? ? ? ????. MB_SUBSTR? ?? ??? ??? ???????. ? : $ str = "hello"; echo $ str [0]; ?? H; ??? MB_SUBSTR ($ str, 1,1)? ?? ??? ??? ??? ??????. ?? ???????? ???? ??? ???? ?? ???? ?? ?? ???? ?????? ??? ????? ?? ??? ?? ??? ???? ???? ?? ????.

?? PHP ?? ??? ?? PHP ?? ??? Jul 18, 2025 am 04:52 AM

toinstallphpquickly, usexampponwindowsorhomebrewonmacos.1. ??, downloadandinstallxAmpp, selectComponents, startApache ? placefilesinhtdocs.2

See all articles