【发布时间】:2009-10-20 19:55:00
【问题描述】:
我已经在 Windows 7 和 IIS 上安装了 php 5.3.0,并为 CGI 配置了它
我喜欢一篇很棒的文章
http://www.hauser-wenz.de/s9y/index.php?/archives/280-Installing-PHP-on-Windows-7.html
它真的很简单而且很有效(感谢上传此内容的人)
php 运行良好,但问题是当脚本中有任何错误而不是像正常的 PHP 错误那样得到错误报告(如页面名称、行号等)时,它会给出以下错误
PHP Warning: Unknown: 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 '..../....' for '4.0/no
DST' 改为 C:\inetpub\wwwroot\test.php 第 4 行
不是时区错误。即使我禁用了 Internet Explorer“显示友好的 HTTP 错误”
例如,如果我编写这个简单的 php 脚本
<?php
echo("hello");
?>
这行得通,如果我这样写
<?php
echo("hello);
?>
它给出了与上面提到的相同的错误。
感谢您的帮助。
【问题讨论】: