Home > php教程 > php手册 > 1.PHP时间的配置,

1.PHP时间的配置,

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 08:50:27
Original
1051 people have browsed it

1.PHP时间的配置,

1.打开PHP配置文件,php.ini,找到[date]下的" ;date.timezone="选项,修改为 Asia/Hong_Kong 然后重启服务器;

2.在 使用时间函数之前,添加函数 " date_default_timezone_set("Asia/Hong_Kong"); " 

3.输入本地时间函数 : 

date("Y-m-d H:i:s")
Copy after login
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
Latest Issues
php 01==1?
From 1970-01-01 08:00:00
0
0
0
php double for loop traverses 1 to 100
From 1970-01-01 08:00:00
0
0
0
1.How is PHP written?
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template