header
文章目录
header('Content-type: image/png');
header('Content-Disposition: attachment; filename="index.png"');
readfile('http://beijingmarathon2015.hupu.com/frontSource/beijingMarathon2015/images/index.png');
http://php.net/manual/zh/func...
http://php.net/manual/zh/func...
ox16进制


header("Content-type: image/jpeg");
$im = imagecreatefrompng("http://baidu.com/images/bg-beer.png");
$textcolor = imagecolorallocate($im,0,0,0);
$font = "/fonts/simhei.ttf";
$text='12345';
$text = mb_convert_encoding($text,"html-entities", "utf-8");
imagettftext($im,10,0,200,200,$textcolor,$font,$text);
imagepng($im);




评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论