יצרתי תמונת GD בסגנון הזה:
PHP קוד:
header ("Content-type: image/png");
$img_handle = ImageCreate (70, 30) or die ("Cannot Create image");
$back_color = ImageColorAllocate ($img_handle, 000, 000, 000);
$txt_color = ImageColorAllocate ($img_handle, 255, 255, 255);
ImageString ($img_handle, 31, 5, 5,$text, $txt_color);
ImagePng ($img_handle);
הבעיה שאני לא יכול לשלב את התמונה בטופס HTML/PHP בגלל שהheader לא מתאים.
איך אני נותן לתמונה שיצרתי שם או שיש שיטה אחרת לשלב את התמונת GD בטופס HTML/PHP?
תודה לעוזרים.