XAMPP服务器表现得很奇怪

时间:2015-02-23 17:33:58

标签: php apache xampp

我在Windows Server 2008 R2上安装了包含Apache 2.2.21的XAMPP V 1.7.7。这个问题很奇怪。有一个frame.php,它包含两个不同的帧。

 <FRAMESET name='mainframe' rows="40%, 60%">
      <FRAME src="description.php" name="des">
      <FRAME src="groupnames.php" name="grouping">
  </FRAMESET>

第二帧正确加载,但第一帧“description.php”表现得很奇怪。有时它会加载,有时则不加载。问题出在生产服务器上,而不是本地计算机上。我承认我没有在本地机器上使用XAMPP。它是MAC所以我有内置的Apache。  这是description.php的代码:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<SCRIPT LANGUAGE="JavaScript" SRC="../js/main.js"></SCRIPT>
</head>
<body>
<?php
     include_once '../classes/utils.php';
     include_once ("../classes/brief.php");
     include_once ("../classes/group.php");
     include_once ("../classes/user.php");

     @session_start();
     //get all the messages of the current logged in user
     requirelogin();
     $user = $_SESSION['user'];
     $result = $user->getIsAuthenticated();
     if (!$result) {
       header( "Location: ./index.php" );
     } else {

       $brief = $_SESSION['brief'];

       if($brief != null){
?>
<table cellpadding="5" cellspacing="0" width="100%" border = 1>
  <tr>
    <td align="right" id="topHeader" width="126"><img src="../images/header_front.gif" alt="Welcome to the Department of GVPT" title="Welcome to the Department of GVPT" height="37" width="166" /></td>
    <td colspan="2" id="topBanner"><a href="/gvpt/"><img src="../images/gvpt_title.gif" alt="Government and Politics Homepage" title="Government and Politics Homepage" height="38" width="453" border=0 /></a></td>
  </tr>
  <tr bgcolor=#c3c3c3>
    <td colspan="3" id="redBannerTop" align="right"> <?php
        include_once ("../classes/user.php") ;
        if(isset($user)) {
            echo 'Welcome <b>'.$user->getFirstname().' '.$user->getLastname().'</b>';}
        ?>

<a class = "link" href="./logout.php" target="_top"><span class="headerlink"> Logout</span></a></td>
  </tr>
</table>
<h3 align=center>Brief Description</h3>
           <table>
                  <tr><td width="90%">
                          <table align=center border=1>
                          <!--changed $brief->getbriefdescription() to $brief->getBriefId()-->
                             <tr><td><?php echo $brief->getBriefId()?></td></tr>
                          </table>
                      </td>
                      <td width="10%" align="right">
                          <table width=100% >
                             <tr><td><a onclick="MM_openBrWindow('viewbrief.php','','')" href=#>View Brief</a></td></tr>

                          </table>
                      </td>
                  </tr>
           </table>
</body>
<?php
}
}
?>

已经尝试过在线发帖但没有帮助。尝试缓存,但没有看到conf文件的任何问题。 任何帮助表示赞赏。 提前谢谢。

0 个答案:

没有答案