今天给各位分享帝国cms0777的知识,其中也会对帝国时代2秘籍进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!
本文目录一览:
帝国CMS怎样修改目录权限为0777
在linux 下把目录权限修改成777
在windows下 把目录权限改成读 写
关于帝国CMS目录权限不为0777的问题
在win2003中对存放上传文件的目录要进行要权限设置的:允许公网访问并设置共享.
帝国cms 批量定时审核 代码 或者插件 我知道帝国cms 可以设置任务自动刷新首页和栏目
在首页模板中加入下面代码,尽量放在底部。
script language="javascript" type="text/javascript" src="/e/htmlindex/index_html.php"/script
在 /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($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)time()){
fopen($filepath_s, 'w');
@chmod($filepath_s, 0777);
ReIndex();
}else{
// do nothing
}
db_close();
$empire=null;
?
帝国cms0777的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于帝国时代2秘籍、帝国cms0777的信息别忘了在本站进行查找喔。