当前位置:编程学习 > php >>

关于php创建图像出错

<?php header('Content-Type:image/png'); for ($i=0;$i<4;$i++){ $yan.=dechex(rand(0, 15)); } $tu=imagecreatetruecolor(75, 25); $blue=imagecolorallocate($tu, 0, 102, 255); $white=imagecolorallocate($tu,255,255,255); imagefill($tu, 0, 0, $blue); imagestring($tu, 5, 0, 0, $yan, $white); imagepng($tu); imagedestroy($tu); ?> 代码就是上面的代码,可是不知道哪里出错了,请高手给看看
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,