i need help, i want the output for text on the image. that is see the code <?php $str="<b>Hello World</b>"; $im = imagecreatetruecolor(500, 500); $text_color = imagecolorallocate($im, 233, 255, 100); imagestring($im, 1, 5, 5, $str, $text_color); header('Content-type: image/jpeg'); imagejpeg($im); imagedestroy($im); ?> Code (markup): i got the output is <b>Hello World</b> but, i need the output is Hello World on the image please any one have idea?
when you deal with HTML tags as <b></b> you should use "echo" i guess you sholud try integrating it in " imagestring "
no. i'll get the file(html/script) into the string and the string will be display into the image using image creator function.