Php Apache Web服务器崩溃!

Php Apache Web服务器崩溃!,php,mysql,apache2,wampserver,Php,Mysql,Apache2,Wampserver,我正在使用WAMPServer2.0进行数据库web开发。 当我运行下面的php代码(在html表单中嵌入)时,服务器崩溃,同时不同页面上的其他php进程有效响应。 我已检查了apache错误日志,并看到以下消息: [Fri Oct 22 11:37:04 2010][error][client 127.0.0.1]文件不存在:C:/wamp/www/setapro/setapro,请参考: 这是我执行的php代码: <?php include 'db_inc.php'; $sql

我正在使用WAMPServer2.0进行数据库web开发。 当我运行下面的php代码(在html表单中嵌入)时,服务器崩溃,同时不同页面上的其他php进程有效响应。 我已检查了apache错误日志,并看到以下消息: [Fri Oct 22 11:37:04 2010][error][client 127.0.0.1]文件不存在:C:/wamp/www/setapro/setapro,请参考: 这是我执行的php代码:

<?php 
include 'db_inc.php';
$sql    = "select AVG(no_of_satelites) as 'Mean Number of Satelites', AVG(         height_of_geoid ) as'Mean of HDOP', AVG(rmc_gga_longitude) as 'Mean of Longitude', AVG(rmc_gga_latitude) as 'Mean of latitude'  FROM total_rmcs_ggas ";
$result = mysql_query($sql, $link);
if (!$result) {
die("Query to show averages from table failed");
}
echo 'Number of rows returned from query = '.mysql_num_rows($result) or die();
echo "<h2>Table:Averages for the GPS Receiver</h2>";
while ($row = mysql_fetch_assoc($result)){
echo $row['Mean Number of Satelites'].' '.$row['Mean of HDOP'].' '.$row['Mean of  Longitude'].' '.$row['Mean of latitude'].'<br />';
}
mysql_free_result($result);
mysql_close();
?>  


我不知道它说的是哪个文件,因为我的文档根目录中有所有文件。我需要一些帮助。非常感谢。“setapro”是项目文件夹名,而不是文件名。

我刚刚发现mysql\u close()是空的,我必须像这样包含资源:mysql\u close($link)。否则,服务器将崩溃。

定义“服务器崩溃”。到底发生了什么?您使用的是什么IDE?如果问题根本就在代码中,请尝试对代码进行注释,直到apache停止崩溃以查找问题。我对此有些怀疑。我正在使用eclipse。我想我应该使用mysql\u close($link)而不是mysql\u close()。这是我的错误。谢谢