HTTP 500,該怎麼解決

來源:互聯網
上載者:User
HTTP 500
HTTP 500 - 內部伺服器錯誤

伺服器:IIS6+PHP5.2.5+MYSQL

以前裝DEDE什麼的PHP程式都很好,今天安裝一個新程式,也安裝成功了,網站大部分都正常,只有一個頁面出現“HTTP 500 - 內部伺服器錯誤”

也GOOGLE了也百度了,也根據網上提供的解決辦法嘗試一天了,都半夜了還沒有解決,來求助了。

IWAM_MAME三處密碼也設定了。

我現在感覺就是腦袋有點大。

下邊是出錯檔案的代碼,是不是檔案本身出問題了,大夥幫忙給看看,謝謝拉。

require_once "global.php";

if($user_id == -1) sysmsg($lang_sysmsg['nologin'],'index.php');

$tpl->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 <= 0 && sysmsg($lang['vip_only'],'person.php?op=joinvip');

//$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 <= 0 && $pmcount['t'] == 3) {
// 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');
}
?>




------解決方案--------------------
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.