请问PHP初期配置Timezone有关问题
程序员文章站
2022-05-28 13:01:44
...
请教PHP初期配置Timezone问题
大家好,请教一个问题
系统是2003,安装有framework2.0,fastcgi,iis6.0,php5.4.4
配置php5.4.4后,使用iProber探针,除服务器时间外,都显示正常。
服务器时间显示:
Warning: 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. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\inetpub\wwwroot\iProber.php on line 231
2012年7月9日 07:42:02 北京时间: 2012年7月9日 15:42:02
重新配置php.ini,改为date.timezone = Asia/Shanghai和date.timezone = PRC,均无效(已经去掉了前面的;),探针服务器时间问题依旧。
服务器时区和时间是正常的,参考http://topic.csdn.net/u/20100708/21/a6086a64-6ce5-4f53-9251-cb9365bf0eb1.html 帖子,CunningBoy兄说的“TZ应该是phpinfo()列出的date部分的Default timezone”没有找到位置。
烦请朋友们帮忙看看,多谢!
------解决方案--------------------
echo phpinfo();
?>
这是php页面代码 保存成一个文件 然后在浏览器里打开这个网址看看.比如服务器上 localhost/index.php
不需要apache 因为你已经可以看探针那就说明你的环境应该已经正常了
大家好,请教一个问题
系统是2003,安装有framework2.0,fastcgi,iis6.0,php5.4.4
配置php5.4.4后,使用iProber探针,除服务器时间外,都显示正常。
服务器时间显示:
Warning: 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. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\inetpub\wwwroot\iProber.php on line 231
2012年7月9日 07:42:02 北京时间: 2012年7月9日 15:42:02
重新配置php.ini,改为date.timezone = Asia/Shanghai和date.timezone = PRC,均无效(已经去掉了前面的;),探针服务器时间问题依旧。
服务器时区和时间是正常的,参考http://topic.csdn.net/u/20100708/21/a6086a64-6ce5-4f53-9251-cb9365bf0eb1.html 帖子,CunningBoy兄说的“TZ应该是phpinfo()列出的date部分的Default timezone”没有找到位置。
烦请朋友们帮忙看看,多谢!
------解决方案--------------------
echo phpinfo();
?>
这是php页面代码 保存成一个文件 然后在浏览器里打开这个网址看看.比如服务器上 localhost/index.php
不需要apache 因为你已经可以看探针那就说明你的环境应该已经正常了
相关文章
相关视频
上一篇: PHP中$_SERVER的详细说明
下一篇: 学习笔记-Squid基础
推荐阅读
-
关于PHP做前台首页和后台首页的有关问题(请问大大!)
-
,请问个php数据处理的有关问题
-
php配置有关问题,phpinfo可以解析,但是其他的却不行。求教
-
Bigcommerce:config.php的配置有关问题:无法写入自定义的新的配置信息
-
请问php pthread后台处理的有关问题!
-
PHP eclipse配置有关问题,大家帮忙姐姐一哈
-
关于PHP配置有关问题,(fastcgi|isapi)
-
请教 有关 Apache+PHP 配置伪静态的问题
-
Windows下PHP5.20+Apache2.2.3配置有关问题
-
请问2个有关问题:php的imagecreatefromjpeg和一个ajax