iis显示php错误的方法 1. 在网站根目录添加web.config文件; 2. 设置代码为“<httperrors errormode=detailedlocalonly existingresponse=passthrough>”。
本文操作环境windows7系统,php5.6版,dell g3电脑。
iis怎么显示php错误?
iis7下,显示php错误:
事实上,我们都知道设置php显示错误,但是在iis7/7.5下,还需要额外的配置。
首先看php的配置
display,errors = on;error,reporting = e,all & ~e,notice;iis的配置, 注意你首先需要在你的网站根目录添加web.config文件:
代码如下
<?xml version=1.0 encoding=utf-8?><!-- for more information on how to configure your asp.net application, please visithttp://go.microsoft.com/fwlink/?linkid=169433 --><configuration> <system.web> <compilation debug=true targetframework=4.5/> <httpruntime targetframework=4.5/> </system.web> <system.webserver> <httperrors errormode=detailedlocalonly existingresponse=passthrough></httperrors> </system.webserver></configuration>这个还真实百度经验的干货。。
推荐学习《php视频教程》