高手帮忙!php页面display_errors = On开启后仍然空白问题
Lmir 2005-04-23 11:18:02 服务器转移后出现问题,转移时文件都拷贝过来的,应该没有丢失
php培植都是按照一个标准配置文档配的:
拷贝文件,添加应用程序扩展,iis配置添加映射等
管理员登陆后,页面空白,用户名和密码都能鉴别是否错,空白文档的title能显示出来
但是body为空白,查看源代码也没有内容,让我无从下手,欲哭无泪啊,请高手指点迷津
登录页面,login.php:
<? session_start(); ?>
<?php include("func.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>管理员登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<?
$yes=$_REQUEST['yes'];
if ($yes=="yes")
{
$username=$_REQUEST['username'];
$userpwd=$_REQUEST['userpwd'];
if(isuser($username,$userpwd)==1)
{
$usertype=getusertype($username);
//登记当前用户的用户名和级别
session_register("username");
session_register("usertype");
//setcookie ($cookie_username,$username);
//$cookie_testname=$_COOKIE["cookie_username"];
//echo "cookie_testname:".$cookie_testname;
//echo "do it!";
//echo $_SESSION["username"];
?>
<script language="javascript">
window.location.href="main.php"
</script>
<?
}
else
{
if(isuser($username,$userpwd)==0)
{
echo "密码不正确!";
}
else
{
echo "该用户不存在!";
}
}
}
else
{
?>
<form name="form1" method="post" action="">
<table width="500" align="center" cellpadding="1" cellspacing="1" bgcolor="#0099FF">
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center" class="pt12">管理员登录</div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center" class="pt9">用户名:
<input name="username" type="text" id="username" size="16">
</div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center" class="pt9">口 令:
<input name="userpwd" type="password" id="userpwd" size="16">
</div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center">
<input name="Submit" type="submit" class="pt9" value="确 定">
<input name="Submit2" type="reset" class="pt9" value="取 消">
<input name="yes" type="hidden" id="yes" value="yes">
</div></td>
</tr>
</table>
</form>
<?
}
?>
</body>
</html>