请问PHP初期配置Timezone有关问题

WBOY
Release: 2016-06-13 13:23:04
Original
836 people have browsed it

请教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 因为你已经可以看探针那就说明你的环境应该已经正常了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template