Home  >  Article  >  Backend Development  >  php 时间配置

php 时间配置

WBOY
WBOYOriginal
2016-06-23 14:30:26826browse

1、临时解决办法:在用到的文件开头或时间初始化前面加上:date_default_timezone_set ('PRC');

2、 一劳永逸办法:修改php.ini查找date.timezone去掉前面的分号 ,在= 后面加时间去标识:PRC',然后重启服务器;

 

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
Previous article:php的ajax实例Next article:php开源软件