$text = $_GET['text'];
$img =imagecreate(500,80);//设置底图大小
imagecolorallocate($img,0xff,0xff,0xff);//生成底图...imagecolorallocate($img,0,0,0);//设置字体颜色 我写的黑色
imagettftext($img,$size,0,100,50,$black,$font,$text); //生成图片...header('Content-Type: image/png');//声明格式为png
imagegif($img);//输出