centos 5.3 yum install php php-5.1.6-27.el5_5.3
装完后运行
<?  echo phpinfo();?>这个页面没问题
可是运行
<?php
session_start();
include("defines.php");
mysql_asterisk();
$user=$_POST['user'];
$secret=$_POST['secret'];
$sql="select * from e_user where loginname='".$user."' and password='".$secret."'";
//echo $sql;
$result=mysql_query($sql) or die(mysql_error());
//用户名密码正确
if(mysql_num_rows($result))
{
$_SESSION['user']='admin';
echo "<meta http-equiv='refresh' content='0; url=main.html'>";
}
else
{
echo "<script type='text/javascript'>
alert('用户名或密码错误');
</script>";
echo "<meta http-equiv='refresh' content='0; url=index.html'>";
}
?>页面什么显示都没有,这个是一个form表单的action的页面? 
代码我放到windows上的httpd或另外一台linux上运行没问题
这是什么原因?