php 在图片上输出字符串提示有语法错误
<?phpob_clean();$image=imagecreate(200,200);$white=imagecolorallocate($image,255,255,...
<?php ob_clean(); $image=imagecreate(200,200); $white=imagecolorallocate($image,255,255,255); $black=imagecolorallocate($image,0,0,0); $str='Hello PHP!' imagestring($image,1,100,25,$str,$black); imagestringup($image,2,100,150,$str,$black); imageschar($image,3,50,50,$str,$black); imagescharup($image,4,50,100,$str,$black); header('Content-type:image:jpeg'); magejpeg($image); imagedestroy();?>
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询