kiss me?help me?answer me?tell me?
ymdxf 2001-11-13 03:15:55 #!/usr/bin/perl
use GD;
print "Content-type: image/png\n\n";
$im = new GD::Image(100,100);
$white = $im->colorAllocate(255,255,255);
$black = $im->colorAllocate(0,0,0);
$im->rectangle(0,0,99,99,$black);
$im->fill(50,50,$black);
binmode STDOUT;
print $im->png;
print "Content-type: text/html\n\n";
print "ok";
除了用插入<img src="的方式,为什么我不能在同一个CGI程序里输出PNG和HTML格式?请教有没有方法?