PHP קוד:
function image() {
header ("Content-type: image/png");
$string = substr(md5(time()), 0,5);
$font = 5;
$width = 60;
$height = 22;
$im = @imagecreate ($width,$height);
$background_color = imagecolorallocate ($im, 224, 224, 224);
$text_color = imagecolorallocate($im, 255, 0, 0);
imagestring ($im, $font, 7, 5,$string, $text_color);
imagepng ($im);
}
איך אני מהוסיף לזה תמונה ברקע ולשנות פונט?
תודה מראש