最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php 缓存设计
时间:2022-06-24 23:51:29 编辑:袖梨 来源:一聚教程网
php
$cahetime=2;//设置过期时间
$cahefile="cahe.txt";//读写文本
if(file_exists($cahefile) && time()-$cahetime< filemtime($cahefile)){
echo file_get_contents($cahefile);
}
else {
file_put_contents($cahefile,date("y-m-d H:i:s",time()));
}
?>
相关文章
- 日语森罗天行是什么意思 03-18
- 微博网页版快捷登录手机版-微博手机网页版极速登录平台 03-18
- 抖音殷世航求婚是什么梗 03-18
- Picacg紳士漫畫極速下載-picacg官網最新版 03-18
- 2024支付宝蚂蚁新村4月10日今日答案 03-18
- realmegt2pro价格介绍 03-18