php warning:phpinfo (): It is not safe for rely on the system ' s timezone settings. Workaround
After installing PHP, use phpinfo (); View information, with Warning:phpinfo (): It is not safe to rely on the system ' s timezone settings, because there is no timezone to set up systems.
Workaround:
1. Open PHP.ini, if you do not know the location of php.ini, you can use
View the Loaded Configuration File to know the php.ini location that is currently in use.
2. Locate Date.timezone, modify to Date.timezone = RPC, save after.
[Date]
; Defines the default timezone used by the date functions
; Http://php.net/date.timezone
Date.timezone =
Revision changed to
[Date]
; Defines the default timezone used by the date functions
; Http://php.net/date.timezone
Date.timezone = PRC
3. Restart PHP after modification, view phpinfo (); Warning disappeared.
The above describes PHP Warning:phpinfo (): It is not safe to rely on the systems timezone settings. Solution, including the content of the aspects, I hope to be interested in PHP tutorial friends helpful.