当前位置:Gxlcms > PHP教程 > php设置8小时时差程序设置方法_PHP教程

php设置8小时时差程序设置方法_PHP教程

时间:2021-07-01 10:21:17 帮助过:12人阅读

session_start();
date_default_timezone_set('asia/shanghai');
header("cache-control: no-cache, must-revalidate");
define('applicaton_root', dirname(__file__));
define('sys_root', dirname(dirname(__file__)).'/framework');
define('default_control', 'public');
include(sys_root . '/runtime.php教程');
$c=$_request['c'];
$a=$_request['a'];
$e=$_request['e'];
if($c==""){
$_request['c']=$c='frame';
$_request['a']=$a='index';
}
$tpl = tpl::singleton();
$tpl->assign('frame',1);
$globals['frame'] = 1;
if($c=='frame' && $a=='index'){
$fc = $_request['fc'];
$fa = $_request['fa'];
if($fc==""){
$fc = 'user';
}
if($fa==""){
$fa = 'index';
}
$tpl->assign("fc",$fc);
$tpl->assign("fa",$fa);
}
$main = dispatch($c,$a);
//echo $main;
//startframework();
$tpl->assign("title",gettitle());
$tpl->assign('main',$main);
$tpl->display('frame.html');
?>

看到加红了没,那就是我们要设置8小时时差程序设置方法 了。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/632315.htmlTechArticlesession_start(); date_default_timezone_set('asia/shanghai'); header(cache-control: no-cache, must-revalidate); define('applicaton_root', dirname(__file__)); define('sys_root', dirn...

人气教程排行