直接运行'createimage.php' 看能不能出照片呀.
今天没带本子回家,没有调试环境,呵呵.

解决方案 »

  1.   

    直接运行'createimage.php' 看 能不能出图片,如果不能,是没有写成图片并输出
    如果生成图片但A.php中不显示,改成<iframe src='createimage.php' name="test" width="681" height="422"/> 
    试试
      

  2.   

    你的代码在我的测试环境下完全没有问题。不知道你的环境是什么?可能你的php中没有打开GD使用phpinfo()看看,如果打开GD和设置,请参看php manual,http://cn2.php.net/gd
      

  3.   

    你看下那src='createimage.php' 这个路径是否正确
      

  4.   

    还是不显示,但可以生成png文件运行了一个php demo,可以正常显示图片还是我的程序有问题,毕竟是web菜鸟a.php是这样的<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>einstein</title>
    <style>
    body {
    margin:0;
    padding:0;
    color:#000;
    font-size:14px;
    background:#fff;}
    form div {
        margin-top: 5px;
        margin-bottom: 5px;
    }
    div.ads{
        font-size:12px;
    width:250px;
    height:250px;
    padding:0;
    margin:0;
        background:#fff;
    }
    .label {
        display: block;
        float: left;
    }
    .input {
        margin-left: 10px;
    }
    .button {
    }
    </style>
    </head><body>  <table width="1029" border="0">
        <tr>
          <td width="681" height="266"><textarea name="textarea1" cols="82" rows="16">
      支持中文字體,但某些字體可能只接受繁體漢字,或相反 來來來    跟我學寫漢字 “甲乙丙丁、一二三四”                                           </textarea></td>
          <td width="332"><label for="angle" class="label">字体&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
          <input name="textarea2" type="text" class="input" value="">
      <p></p>
            <label for="angle" class="label">文字大小&nbsp;</label><input name="textarea3" type="text" class="input" value="">
    <p></p>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          </td>
        </tr>
        <tr>
          <td width="681" height="418"><img src='createimage.php' name="test" width="681" height="422"/></td>
          <td>&nbsp;</td>
        </tr>
      </table>
      <p>&nbsp;</p></body>
    </html>
      

  5.   

    没有问题啊。可能是LZ的GD库没有开,在PHP.INI文件里找到gd2,去掉前面分号就成了。
      

  6.   

    没有问题啊。可能是LZ的GD库没有开,在PHP.INI文件里找到gd2,去掉前面分号就成了。
    ==========================
    打开了另外可以正确运行网上demo,显示图片
      

  7.   

    你的源代码拿到windows和linux都测试成功.
      

  8.   

    难道是缓存没有清理~~~?清理缓存看看
    ===================================
    在php中用函数吗?
      

  9.   

    昨天我清理历史记录,可以正常显示图片了但这是手工清除的,能不能在php中函数清除?
      

  10.   

    [code=PHP]  
    header("Expires:   Mon,   26   Jul   1997   05:00:00   GMT");          
    header("Last-Modified:   "   .   gmdate("D,   d   M   Y   H:i:s")   .   "   GMT");  
    header("Cache-Control:   no-cache,   must-revalidate"); 
    header("Pragma:   no-cache");  
    [code]
    设置不记缓存.
    尝试一下.