根据网上的说明,将php.ini的date.timezone值设为PRC,但在页面中调用date()函数仍会提示我需要设置时区
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.php.ini中的设置应该没有问题,拼写什么的也都正确
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.php.ini中的设置应该没有问题,拼写什么的也都正确
解决方案 »
- smarty 如何调用 php类的常量成员
- 页面多radio和check如何验证?
- 为什么varbinary返回到页面的是乱码?
- 求高手写个php语句
- 基础问题,这是什么意思?
- 请高手赐教,怎样去掉"文件下载"提示框中的"打开"按钮
- 下载器代码可能有问题,导致PDF文件损坏
- 高分求救:原来是IIS5+WIN2KPRO+PHP4.2.3没问题,昨天我装了Apache2.0.48后,PHP里的变量都不能用了,这是怎么回事啊?
- apache+php+sybase
- 简单的一个http的post
- php中的pg_pconnect之类的函数出错,就简单返回一个false,我想知道具体的错误怎么办?
- 谷歌浏览器下的JS解析XML代码,谁能给一个
我设置了为什么还不行?
Windows下在控制面板中
date("O +0800", time());
“date_default_timezone_set('PRC');”
我的是因为路径不对根本没有读取php.ini文件。