您好,欢迎访问一九零五行业门户网

HTTP 500 - 内部服务器异常

http 500 - 内部服务器错误 求助
http 500 - 内部服务器错误
服务器:iis6+php5.2.5+mysql
以前装dede什么的php程序都很好,今天安装一个新程序,也安装成功了,网站大部分都正常,只有一个页面出现“http 500 - 内部服务器错误”
也google了也百度了,也根据网上提供的解决办法尝试一天了,都半夜了还没有解决,来求助了。
iwam_mame三处密码也设置了。
我现在感觉就是脑袋有点大。
下边是出错文件的代码,是不是文件本身出问题了,大伙帮忙给看看,谢谢拉。
set('site_title',$nav[pm].'-');
if($op == 'listpm') {
$str = select t1.nickname,t2.* from friends_user as t1,friends_user_pm as t2 where pto='$username' and t1.username=t2.pfrom and box='1';
$coobj = $data->getlist($str,20);
$coobj->navchar = $lang_nav;
$tpl->set(navbar,$coobj->navbar(10));
$tpl->set(list,$coobj->field);
$tpl->set(pagejump,$coobj->pagejump());
$tpl->set(pm_content,pm_list.html);
$tpl->parse(pm.html);
} elseif($op =='viewpm') {
$vip
//$id=$_get[id];
$arr = $db->get_one(select * from friends_user_pm where pto='$username' and id='$id');
$free = $arr[free];
$flag = $arr[readed];
/*
if($free == 0 && $flag == 0)
{
if(!uppoint($username,viewpm,收取留言))
{
sysmsg($lang_sysmsg['nopoints'],'person.php?op=buypoint');
}
}
*/
$db->query(update friends_user_pm set readed='1' where pto='$username' and id='$id');
$str = select t1.nickname,t2.* from friends_user as t1,friends_user_pm as t2 where t1.username=t2.pfrom and t2.pto='$username' and t2.id='$id';
$coobj = $data->getlist($str,1);
$tpl->set(list,$coobj->field);
$tpl->set(pm_content,pm_view.html);
$tpl->parse(pm.html);
} elseif($op =='newpm') {
//$pmcount = $db->get_one(select count(*) as t from `friends_user_pm` where `pfrom`='$username');
//if($vip // sysmsg($lang['pm_limit_novip'],'person.php?op=joinvip');
//}
if(checksubmit($_post[submit]))
{
//$from = $_post[from];
//$to = $_post[to];
//$title = $_post[title];
//$msg = $_post[msg];
$time = date(y-m-d h:i:s);
$db->query(insert into `friends_user_pm` (`pfrom`,`pto`,`title`,`msg`,`ptime`) values ('$from','$to','$title','$msg','$time'));
$uinf = $db->get_one(select `email` from `friends_user` where `username`='$to');
email_newpm($to,$uinf['email']);
sysmsg($system_msg[2026],'person.php');
}
else
{
$tpl->set(from,$username);
$tpl->set(to,$_get[to]);
$tpl->set(pm_content,pm_post.html);
$tpl->parse(pm.html);
}
} elseif($op == 'delpm') {
//$id = $_get[id];
$db->query(delete from friends_user_pm where pto='$username' and id='$id');
sysmsg($system_msg[2027],'pm.php?op=listpm');
}
?>
------解决方案--------------------
1.iis中错误发送打开;
2.ie中“工具”-》“internet选项”-》“高级”中把“显示友好http错误信息”前面的钩去掉。
这样就能看到具体报错信息了,在根据错误位置调试程序吧。
------解决方案--------------------
鉴于:网站大部分都正常,只有一个页面出现“http 500 - 内部服务器错误”
建议:一个一个地方的echo, 也能找到问题啊。
------解决方案--------------------
其它类似信息

推荐信息