Home  >  Article  >  Backend Development  >  What should I do if the time zone modification in php.ini is invalid?

What should I do if the time zone modification in php.ini is invalid?

藏色散人
藏色散人Original
2021-10-29 11:00:322205browse

Solution to invalid php.ini time zone modification: 1. Find and open the httpd.conf file; 2. Add the "php_value date.timezone PRC" code at the end of the file.

What should I do if the time zone modification in php.ini is invalid?

The operating environment of this article: Windows 7 system, PHP version 7.1, DELL G3 computer

What to do if the time zone modification of php.ini is invalid ? [Development environment] The time zone setting in php.ini does not take effect?

The configuration in php.ini still does not take effect

At this time, you need to open apache to set up

Open httpd.conf Add the following codes at the end of the file

<IfModule mod_php7.c>
php_value date.timezone PRC
</IfModule>

Then look at PHP, the setting is successful

Recommended learning: "PHP Video Tutorial

The above is the detailed content of What should I do if the time zone modification in php.ini is invalid?. For more information, please follow other related articles on the PHP Chinese website!

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