您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

iis怎么显示php错误

2024/4/7 7:02:09发布11次查看
iis显示php错误的方法:1、在网站根目录添加web.config文件;2、设置代码为“29538a3621c51775856c04d727dd6cb1”。
本文操作环境: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 visit http://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视频教程》
以上就是iis怎么显示php错误的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product