header("Content-type: image/png");前面不能有输出!你已经输出了<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

解决方案 »

  1.   

    你可以用TEMPLATE,把<?php   ?>放在另一个页面,
    在header 前只要INCLUDE就可以了
      

  2.   

    header前不能带有输出,在header前include不是一个样吗?
      

  3.   

    <html> 
      <head>
        <title>请看验证码</title>
      </head>
      <body>
      <h2>请看验证码:
      <img src="1.php" alt="验证码">
      </body>
    </html>
      

  4.   

    应该用flyfeicsdn(flyfei)的方法。你那样不是显示图片!
      

  5.   

    flyfeicsdn(flyfei)
    这是什么方法?