CMS教程|帝国CMS
帝国cms
CMS教程-帝国CMS
微信 源码 php 外卖,vscode用不了Python,ubuntu asp,tomcat 启动缓慢,sqlite 性能?,延安网页设计,免费sql 数据库,服务器营销方案,ecshop商品购买数量加减按钮插件,netmvc前端框架,爬虫全图,php1,上海seo网站推广,springboot资讯web,织梦模板标签修改,球球大作战网站源码,关闭隐藏网页,电子商务商城模板,网站后台怎么上传网页模板,静态页面免费下载,微擎小区物业管理系统,苹果电影模板启动程序lzw
本文实例讲述了帝国CMS自动刷新首页的方法。分享给大家供大家参考。具体实现方法如下:
人员档案管理源码,ubuntu磁盘efi分区,网站爬虫监控软件,php valstr,江门seo基础lzw
在首页模板中加入下面代码,尽量放在底部.
超越简单同学录源码,vscode初始化代码格式,ubuntu连接ss,tomcat发布打不开,爬虫高级应用,php优秀框架,兰州正规新站seo优化费用lzw
代码如下:
在 /e/ 建立文件夹 htmlindex 并设置 777权限,将下面代码保存在 /e/htmlindex/index_html.php,修改刷新时间,将文件中1200改为你想要的时间,单位为秒.
推荐学习《帝国cms教学》
代码如下:
<?phprequire("../class/connect.php");include("../class/db_sql.php");include("../class/config.php");include("../class/functions.php");include("../class/t_functions.php");require LoadLang("pub/fun.php");require("../data/dbcache/class.php");require("../data/dbcache/MemberLevel.php");include("../class/chtmlfun.php");$link=db_connect();$empire=new mysqlquery();$filepath_s="indexhtmlhc.txt";$time=time();@$filemtime=(int)filemtime($filepath_s)+1200;/*函数解释file_exists() 函数检查文件或目录是否存在。mkdir() 函数创建目录。time() 函数返回当前时间的 Unix 时间戳。filemtime() 函数返回文件内容上次的修改时间。*/if (!file_exists($filepath_s)){fopen($filepath_s, w);@chmod($filepath_s, 0777);ReIndex();}elseif(!file_exists($filepath_s) || (filemtime($filepath_s)+1200)