PHP exception prompt after phpinfo () Check

Source: Internet
Author: User
Tags php error
PHP error prompt [29-Jan-201001: 27: 28] PHPWarning: phpinfo (): itisnotsafetorelyonthesystemstimezoneset.pdf after phpinfo () check. youare * required * tousethedate. PHP error prompt after timezonesetti phpinfo () Check

[29-Jan-2010 01:27:28] PHP Warning: phpinfo (): It is not safe to rely on the system's timezone settings. you are * required * to use the date. timezone setting or the date_default_timezone_set () function. in case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. we selected 'utc' for '8. 0/no DST 'Instead in E: \ www \ index. php on line 2



According to the prompt, it is about the time zone settings in php. ini.

Find out:

Date. timezone =? If yes; date. timezone =? Remove the previous; number.

The value after = can be set to PRC, Asia/Chongqing, Asia/Shanghai, or Asia/Urumqi.

For Hong Kong and Taiwan regions, you can set it to Asia/Macao, Asia/Hong_Kong, or Asia/Taipei.

Format:

Date. timezone = PRC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.