楼主,我也碰到过同样的问题,找BAIDU和GOOGLE都没有办法,CSDN上也没有很好的办法,最后我用了假相搞定了
代码:testimg1.php
<?php
header('Content-type:image/png');
$im=imagecreate(520,400);
$col=imagecolorallocate($im,128,128,255);
imageline($im,10,5,10,300,$col);
imageline($im,10,300,500,300,$col);
imagestring($im,3,8,2,"Y",$col);
imagestring($im,3,501,302,"X",$col); imagepng($im,"abc.png");
imagedestroy($im);
?> testimg2.php
<img src='testimg1.php' width=1 height=1>
<?PHP
sleep(5);
?>
<img src='abc.png'>
代码:testimg1.php
<?php
header('Content-type:image/png');
$im=imagecreate(520,400);
$col=imagecolorallocate($im,128,128,255);
imageline($im,10,5,10,300,$col);
imageline($im,10,300,500,300,$col);
imagestring($im,3,8,2,"Y",$col);
imagestring($im,3,501,302,"X",$col); imagepng($im,"abc.png");
imagedestroy($im);
?> testimg2.php
<img src='testimg1.php' width=1 height=1>
<?PHP
sleep(5);
?>
<img src='abc.png'>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货