Error Description:PHP warning:phpinfo (): It is not safe for rely on the system ' s timezone settings. You is *required* to use the Date.timezone setting or the Date_default_timezone_set () function. In case you used any of those methods and you is
The following problems were encountered when deploying PHP code:
Strict Standards: Date_default_timezone_get () [Function.date-default-timezone-get]: It isn't safe to rely on the system ' s timezone settings. Please use the Date.timezone setting,
15:23:08 [error] 4023 #0: * 2 FastCGI sent in stderr: "PHP message: 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 ()
Problems with PHP TimeZone
since PHP5.0, the PHP time zone uses UTC by default, so it takes 8 hours less time to get system time than Chinese time.Workaround:1. Modify the settings in the php.ini file.[Date]; Defines the default timezone used by
CodeIgniter TimeZone time zone problem and PHP time zone setting
I used the CodeIgniter framework to build the site, use Date (' y-m-d h:i:s ') to get the time and deposit it in the database, but today I found that the time to deposit was much
Php security configuration records and common errors (Summary), common php errors
After the php environment is deployed, some security settings are made. In addition to being familiar with various php vulnerabilities, you can also configure php. ini
After the php environment is deployed, some security settings are made. in addition to being familiar with various php vulnerabilities, you can also configure php. ini to reinforce the runtime environment of PHP, and PHP has been officially modified
Although it is known that this parameter means "People's Republic of China", but the official document does not have such parameters, only Asia/shanghai, Asia/hong_kong and so on these parameters ah, why here can be set to RPC, which is the point of
This article mainly introduces the PHP security Configuration records and common error carding detailed, interested in the friend's reference, I hope to be helpful to everyone.
Usually after the deployment of the PHP environment will be some
I use the codeigniter framework to build a website, and use date ('Y-m-d h: I: s') to get the time and store it in the database. But today I found that, the storage time has a lot of time difference with my local storage.
Because the time zone
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.