How to solve the problem that php.ini setting time zone is not effective
This article mainly introduces "how to solve the problem that php.ini setting time zone is not effective". In daily operation, I believe many people have doubts about how to solve the problem that php.ini setting time zone does not take effect. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubt of "how to solve the problem that php.ini setting time zone is not effective". Next, please follow the editor to study!
Php.ini setting time zone does not take effect of the solution: 1, open the httpd.conf file; 2, add "php_value date.timezone PRC" at the end of the file.
This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer
What if the php.ini setting time zone does not take effect?
The configuration in php.ini still does not take effect.
At this point, you need to open apache to set it.
Open httpd.conf and add the following code at the end of the file
Php_value date.timezone PRC
Then take a look at PHP, and this setting is successful.
At this point, the study on "how to solve the problem that the php.ini time zone does not take effect" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!