CTL adlı üyeden alıntı: mesajı görüntüle

böyle bişey yaptım işine yararsa
<?php
// (A) NEW EMPTY IMAGE OBJECT
$img = imagecreate(500, 500);
 
// (B) SET COLORS
$blue = imagecolorallocate($img, 0, 0, 255);
$white = imagecolorallocate($img, 255, 255, 255);
 
// (C) EMPTY BLUE RECTANGLE
imagefilledrectangle($img, 0, 0, 150, 80, $blue);
 
// (D) WRITE TEXT
$txt = "DenemeÇŞÖ\nÇÖOsad";
$text = wordwrap($_POST['title'], 15, "\n");

$font = "C:\Windows\Fonts\Arial.ttf"; // ! CHANGE THIS TO YOUR OWN !
// imagettftext(IMAGE, FONT SIZE, ANGLE, X, Y, COLOR, FONT, TEXT)
imagettftext($img, 24, 5, 5, 55, $white, $font, $txt);
 
// (E) OUTPUT
/* WE CAN ALSO OUTPUT IN JPEG
* header('Content-type: image/jpeg');
* imagejpeg($img)
*/
header('Content-type: image/png');
imagepng($img);
imagedestroy($img);
?>
$text = wordwrap($_POST['title'], 15, "n") yazan kısmı silince ve $font = "C:WindowsFontsArial.ttf"; // ! CHANGE THIS TO YOUR OWN ! yazan kısımdaki Arial.ttf download edip yolu tam girdiğinde veya php dosyasıyla aynı yere attığında o zaman çalıştı yoksa hata veriyor.