帝国CMS 自动刷新首页对于部份使用帝国程序的网友或许非常有用。刚看到一篇文章, 主要介绍了javascript与php结合的实现前台自动刷新首页的功能。就算一种方法吧。推荐我喜欢的第二种办法.
第一种方法,摘自网上,粗略看了下。
在 /e/ 建立文件夹 htmlindex 并设置 777权限,将下面代码保存在 /e/htmlindex/index_html.php,修改刷新时间,将文件中1200改为你想要的时间,单位为秒.
代码如下:
###<?php
require("../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($filepat
最后
以上就是平淡毛豆最近收集整理的关于帝国cms自动生成html首页,分享一个帝国CMS定时生成首页(自动刷新首页)的方法...的全部内容,更多相关帝国cms自动生成html首页,分享一个帝国CMS定时生成首页(自动刷新首页)内容请搜索靠谱客的其他文章。
发表评论 取消回复