解决方案 »

  1.   

    500 服务器拒绝响应对 php 而言,应是没有打开 php 的错误显示功能,而 php 程序又出现了错误造成的
      

  2.   


    php.ini  里面 display_errors = On 我已经设置过了,但还是没反应啊,程序从服务器下载后,在本地测试有一切正常。不知道哪里出了问题,。。
      

  3.   

    改对了文件吗?重启 IIS 了吗?
      

  4.   

    在那个网站的文件夹下放一个简单输出的php文件,看能运行吗
      

  5.   


    是可以运行的。综合之前网站正常访问来看,估计是程序内部的问题了
    你需要跟踪index.php入口文件,一步步的echo 1;exit;,定位到错误代码
      

  6.   

    查看了下代码:
    index.php 页面:
    <?php
    require "include/helper.php";
    require "header.inc.php";
    ?>
    加载header.inc.php 页面代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Ningbo Apartment Agency finds the place you wish to live in !</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="Description" content="Our agency has been renting to foreigners lots of apartments and houses in Ningbo - China. See our listing with photos !">
    <meta name="Description" content="We rent flat and apartment to many foreign customer during the last years in Ningbo, China. See our listing with pictures from houses and apartments. Only at ningboapartent.com your leading rent agency in Ningbo.">
    <meta name="Keywords" content="ningbo apartment, ningbo flat, ningbo house, ningbo apartment rental, ningbo apartment agency">
    <meta name="Keywords" content="apartment ningbo, flat ningbo, house ningbo, apartment rental ningbo, apartment agency ningbo">
    <meta name="Keywords" content="ningbo, china, Zhejiang, flats for rent in Ningbo, map of ningbo">
    <meta name="keywords" content="apartments ningbo for rent, apartments, apartment, apartment for rent, rentals, for rent, rent, apartment search, homes for rent, houses for rent, moving to ningbo, townhouses, one bedroom apartments, two bedroom apartments, three bedroom apartments">
    <link rel="shortcut icon" href="favicon.ico" >
    <link href="css.css" rel="stylesheet" type="text/css" />
    <link href="global.css" rel="stylesheet" type="text/css" />
    <script type="text/JavaScript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
    <?php if($tab == 2 || $tab == 3) { ?>
    <link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />
    <script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
    <script type="text/javascript" src="js/lightbox.js"></script> <?php } ?>
    <script>

    function chkSearch()
    {

    if(document.sfrm.type.value == '' && document.sfrm.size.value == '' && document.sfrm.monthlyRent.value == '' && document.sfrm.district.value == '') {

    alert("Please choose a search term.");
    return false;

    }
       
       else return true;

    }
    </script>

    </head><body onload="MM_preloadImages('images/menu11.gif','images/menu22.gif','images/menu33.gif','images/menu44.gif','images/menu55.gif','images/menu66.gif')">
    <input type="hidden" name="page" id="page" value="1" />
    <table width="963" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="392" height="91" align="right" valign="top" style="border-left:#FFFFFF 8px solid;"><a href="index.php"><img src="images/logo1.gif" width="384" height="91" border="0" /></a></td>
        <td width="571" valign="top"><table width="571" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="571" height="36" valign="top" background="images/top_bg.gif"><table width="571" border="0" cellspacing="0" cellpadding="0" style="border-right:#FFFFFF 8px solid;" >
                <tr>
                  <td width="48" height="39" valign="top"><img src="images/top_corner.gif" width="48" height="39" /></td>
                  <td width="497"><table width="150" border="0" align="right" cellpadding="0" cellspacing="0" style="cursor:pointer;" onclick="window.location='reg.php';">
                      <tr>
                        <td width="127" class="header">瀹佹尝绉熸埧鎴挎簮鐧昏</td>
                        <td width="23"><img src="images/top_ico.gif" width="23" height="23" /></td>
                      </tr>
                  </table></td>
                  <td width="18">&nbsp;</td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="52" valign="top"><table border="0" cellspacing="0" cellpadding="0" style="border-left:#E8B0B0 8px solid;">
                <tr>
                  <td width="110"><a href="info.php?tid=274" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image41','','images/menu11.gif',1)"><img src="images/menu1.gif" name="Image41" width="110" height="52" border="0" id="Image41" /></a></td>
                  <td width="93"><a href="list.php?type=1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image51','','images/menu22.gif',1)"><img src="images/menu2.gif" name="Image51" width="93" height="52" border="0" id="Image51" /></a></td>
                  <td width="65"><a href="list.php?type=2" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image61','','images/menu33.gif',1)"><img src="images/menu3.gif" name="Image61" width="65" height="52" border="0" id="Image61" /></a></td>
                  <td width="144"><a href="info.php?tid=271" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image71','','images/menu44.gif',1)"><img src="images/menu4.gif" name="Image71" width="144" height="52" border="0" id="Image71" /></a></td>
                  <td width="47"><a href="info.php?tid=279" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image81','','images/menu55.gif',1)"><img src="images/menu5.gif" name="Image81" width="47" height="52" border="0" id="Image81" /></a></td>
                  <td width="96"><a href="contact.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image91','','images/menu66.gif',1)"><img src="images/menu6.gif" name="Image91" width="96" height="52" border="0" id="Image91" /></a></td>
                  <td width="8"><img src="images/menu7.gif" width="8" height="52" /></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>我把红色字体去掉后页面可以显示出来,请问下这是哪里配置没有配置好么???
      

  7.   

    你改的php.ini 是正确的ini吗。phpinfo(); 找一下php.ini 的位置。另外,浏览器中在控制台下看看有没有报错。
      

  8.   

    高手们这种错误是php配置有问题吗?要是这样改的话整个网站基本上都要改啊。以前访问时正常的现在出现这问题。啊。高速上们帮帮忙啊
      

  9.   

    notice警告,语法不规范但是不会中断程序,很多变量没有声明就直接使用了
    把php配置文件中的display errors关闭就可以了