提问人:Kalessin 提问时间:2/10/2014 更新时间:2/10/2014 访问量:60
为什么 PHP 在 IIS7 下不显示错误?
Why isn't PHP displaying errors under IIS7?
问:
运行从 Linux Apache 服务器迁移到 IIS 的脚本时,我得到一个空白页。
按照 SO 上其他地方的建议,我检查了是否正在加载正确的内容。从:php.ini
phpinfo()
加载的配置文件C:\php\php.ini
在该文件中,我有以下内容:php.ini
error_reporting = E_ALL
display_errors = On
log_errors = On
error_log = "C:\Windows\Temp\php_errors.log"
为了更好地衡量,我还添加了
ini_set( 'display_errors', 1 );
error_reporting(E_ALL);
在脚本本身中。
我没有收到任何错误输出到屏幕,并且该文件不存在。C:\Windows\Temp\php_errors.log
我显然错过了一些东西;这是什么?:)
答: 暂无答案
评论