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

WBOY
Release: 2016-07-13 10:54:31
Original
1026 people have browsed it

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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!