header("Content-type: image/png");前面不能有输出!你已经输出了<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
在header 前只要INCLUDE就可以了
<head>
<title>请看验证码</title>
</head>
<body>
<h2>请看验证码:
<img src="1.php" alt="验证码">
</body>
</html>
这是什么方法?