Home >Backend Development >PHP Tutorial >How to set the 8-hour time difference program in PHP_PHP tutorial

How to set the 8-hour time difference program in PHP_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:54:311056browse

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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn