<img src = '你的这个文件'>

解决方案 »

  1.   

    ImageGif($im);
    ==>
    ImagePng($im);
      

  2.   

    晕。楼主header是png,creat却是gif……
      

  3.   

    嗯,君子兰说的没错,楼主改一下<?php
    Header("Content-type: image/png");
    $im = imagecreate(400,30);
    $black = ImageColorAllocate($im, 0,0,0);
    $white = ImageColorAllocate($im, 255,255,255);
    imageline($im, 1, 1, 350, 25, $black);
    imagearc($im, 200, 15, 20, 20, 35, 190, $white);
    imagestring($im, 5, 4, 10, "Graph TEST!!", $white);
    ImageGif($im);--->这里改成Imagepng($im);
    ImageDestroy($im);
    ?>
      

  4.   

    Warning: Cannot modify header information - headers already sent by (output started at /usr/local/htdocs/hello.php:6) in /usr/local/htdocs/hello.php on line 110系统报错!!!
    这是什么意思??/
      

  5.   

    因为生成了这个warning所以报这个错误,这个warning是在header以前发送的,只要去掉错误提示就不会报这个错了