这个是图片的生成部分.
而图片显示部分.是由HTML完成的.image.php
<?php
    header("Content-type: image/png");
    $string = "sss";
    $im     = imagecreatefrompng("go.png");
    $orange = imagecolorallocate($im, 220, 210, 60);
    $px     = (imagesx($im) - 7.5 * strlen($string)) / 2;
    imagestring($im, 3, $px, 9, $string, $orange);
    imagepng($im);
    imagedestroy($im);
?>
showimage.php
<?php
  echo "<img src='image.php'>";
?>而图片的位置等全由 HTML
去控制.也就是 showimage.php 去控制.. 其它页面数据也是在 showimage.php 中去输出...
r u clear??