從輸出圖片程序開始不知道哪里錯了,圖片顯示不出來
<?php
/*保存圖片*/
$src="001.jpg";
$info=getimagesize($src);
$type=image_type_to_extension($info[2],false);
print_r($info);
$fun="imagecreatefrom{$type}";
$image=$fun($src);
$font="msyh.ttf";
$content="你好,慕課";
$col=imagecolorallocatealpha($image,255,255,255,50);
imagettftext($image,20,0,20,30,$col,$font,$content);
header("Content-type: " . $info['mime']);
$func="image{$type}";
$func($image);
$func($image,'newimage.'.$type);
imagedestroy($image);
?>
2016-05-20
可以參考這里,http://www.thinkphp.cn/topic/23636.html
在header前面加ob_clean()
2016-04-03
我也是,不知道怎么回事
2016-03-06
我也出現這個?
2016-03-05
菜鳥飄過!